Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

config: Only marshal Slug, UUID, Deprecated of deprecated exercises #169

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

petertseng
Copy link
Member

@petertseng petertseng commented Sep 17, 2019

We don't need any of the other fields, and it's deceptive to keep them
in the JSON file because a maintainer may mistakenly believe them to
be significant, but in fact they are not; the website does not display
any of the removed fields:
https://github.com/exercism/website/blob/b3314e84c52b52cf5f253386c3f0bf4127ca09aa/app/views/my/tracks/_show_side_exercises.html.haml#L26-L34

Two new tests were added: TestMarshalActive and TestMarshalDeprecated.
TestMarshalActive passes both before and after the associated code
change.
TestMarshalDeprecated fails before the associated code change, and
passes after.

Closes exercism/configlet#140

@petertseng petertseng force-pushed the deprecated branch 2 times, most recently from 53d2d8a to 51ce804 Compare September 18, 2019 03:34
We don't need any of the other fields, and it's deceptive to keep them
in the JSON file because a maintainer may mistakenly believe them to
be significant, but in fact they are not; the website does not display
any of the removed fields:
https://github.com/exercism/website/blob/b3314e84c52b52cf5f253386c3f0bf4127ca09aa/app/views/my/tracks/_show_side_exercises.html.haml#L26-L34

Two new tests were added: TestMarshalActive and TestMarshalDeprecated.
TestMarshalActive passes both before and after the associated code
change.
TestMarshalDeprecated fails before the associated code change, and
passes after.

Closes exercism/configlet#140
@petertseng
Copy link
Member Author

I'd also consider not marshaling unlocked_by for core: true exercises but notice that this is a fundamentally different problem. This PR says "only marshal a specific set of fields". Not marshaling unlocked_by for core is "don't marshal a specific set of fields" which is harder to deal with. I'm not interested in making this change in this PR.

Base automatically changed from master to main January 28, 2021 22:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

configlet fmt on deprecated exercises: Should not re-add core, unlocked_by, difficulty, topics
1 participant