[TASK] sort event.schema.fields by their name-value

Open
#1,706 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
devops, tooling

Research direction

Start by locating the code that handles event.schema.fields and the cached-schema versus deployed-schema comparison. Verify how array ordering is currently compared, then define completion as stable name-based ordering and a comparison that does not reject schemas solely because field order differs; add or update the relevant tests if the repository has them.

Written by the indexing model from the issue text.

Description

c/event chore

turns out those schema entries can also get shuffled around. lets make sure they are sorted by fields[ i ].name to ease PR reviews.
that requires that our check for cached schema vs deployed schema needs to become more complex than a simple comparison of the array (which insists on the same order of fields)

Dominant language
JavaScript
Stars
166
Forks
50
Avg merge
11h 4m
Merged PRs (30d)
36

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Accenture/sfmc-devtools

All issues in Accenture/sfmc-devtools

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.