Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ETL descriptions too long #1526

Merged
merged 6 commits into from
Jun 13, 2019
Merged

ETL descriptions too long #1526

merged 6 commits into from
Jun 13, 2019

Conversation

bencoman
Copy link
Contributor

@bencoman bencoman commented Jun 5, 2019

Such a long test is really a comment, not a description to be used as a test identifier.
Make it so, per #1473

@@ -10,7 +10,10 @@
"such that keys are integers. e.g. in JavaScript, it might look ",
"like `transform( { 1: ['A'] } );`"
],
"description": "transforms the a set of scrabble data previously indexed by the tile score to a set of data indexed by the tile letter",
"description": "Transform",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider

Suggested change
"description": "Transform",
"description": "Transform score based index to letter based index",

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, a single word is a bit too minimal a description, but your suggestion for an identifier leaves my mind twisted and feeling its more a comment than a descriptor. I committed an alternative that hopefully meets you in the middle.

Copy link
Member

@SleeplessByte SleeplessByte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this makes sense in the context of the exercise 👍

Let's wait for 3 ✅ in total, then this can be merged!

@bencoman bencoman requested a review from macta June 5, 2019 23:29
Copy link
Member

@ErikSchierboom ErikSchierboom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case, why don't we just remove the nesting of the cases? I feel that it does serve any real purpose here, as grouping of test cases is usually only done when there are multiple groups (which there aren't here). So my proposal would be to just drop the nesting. What do you think?

@@ -10,7 +10,10 @@
"such that keys are integers. e.g. in JavaScript, it might look ",
"like `transform( { 1: ['A'] } );`"
],
"description": "transforms the a set of scrabble data previously indexed by the tile score to a set of data indexed by the tile letter",
"description": "Transform legacy to new",
"comments": [ "Transforms a set of legacy scrabble data stored as letters per score",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are now two comments fields on the same level.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh woops. Missed that in the diff.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bencoman The new comment is great. Could you perhaps move it to the existing comment on the same level?

@bencoman
Copy link
Contributor Author

bencoman commented Jun 6, 2019

Lets hold further discussion here pending #1525 and #1473.

Note, I've just discovered I accidentally committed direct to master and I'll need to clean that up once a path forward is clear. I was unfamiliar with using Github's web-editor and must have committed it directly before a second commit to a branch to issue this PR.

@bencoman bencoman added the hold label Jun 6, 2019
@SaschaMann
Copy link
Contributor

SaschaMann commented Jun 6, 2019

Note, I've just discovered I accidentally committed direct to master and I'll need to clean that up once a path forward is clear. I was unfamiliar with using Github's web-editor and must have committed it directly before a second commit to a branch to issue this PR.

That happens fairly easily with the web editor. Might be a good idea to setup branch protection for master on this repo to prevent accidental pushes without PRs.

edit by @SleeplessByte: it's set up! Thanks @iHiD

bencoman added 2 commits June 6, 2019 21:47
Such a long test is really a comment, not a description to be used as a test identifier.
Make it so, per #1473
@rpottsoh rpottsoh force-pushed the bencoman-patch-1 branch from 3dc5114 to 662b370 Compare June 7, 2019 01:47
@rpottsoh
Copy link
Member

rpottsoh commented Jun 7, 2019

Errant commit has been reverted.

Copy link
Member

@rpottsoh rpottsoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"version" will also need to be updated before this can be approved.

@@ -10,7 +10,10 @@
"such that keys are integers. e.g. in JavaScript, it might look ",
"like `transform( { 1: ['A'] } );`"
],
"description": "transforms the a set of scrabble data previously indexed by the tile score to a set of data indexed by the tile letter",
"description": "Transform legacy to new",
"comments": [ "Transforms a set of legacy scrabble data stored as letters per score",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bencoman The new comment is great. Could you perhaps move it to the existing comment on the same level?

@bencoman bencoman removed the hold label Jun 12, 2019
@bencoman
Copy link
Contributor Author

move [new comment] to the existing comment on the same level?

done

Copy link
Member

@ErikSchierboom ErikSchierboom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

exercises/etl/canonical-data.json Outdated Show resolved Hide resolved
@bencoman
Copy link
Contributor Author

In future I'll use https://jsonlint.com/ to validate JSON before committing.

@rpottsoh
Copy link
Member

https://jsonschemalint.com is also useful for checking your work against the schema.

@bencoman bencoman merged commit df8331a into master Jun 13, 2019
@bencoman bencoman deleted the bencoman-patch-1 branch June 13, 2019 12:26
sshine added a commit to thalesmg/haskell that referenced this pull request Oct 14, 2019
sshine pushed a commit to exercism/haskell that referenced this pull request Oct 14, 2019
It seems that only a version bump is necessary.

Latest changes to this problem:

- 1.0.0 to 1.0.1, descriptions too long: exercism/problem-specifications#1526
- 1.0.1 to 2.0.0, change input JSON format: exercism/problem-specifications#1536
- 2.0.0 to 2.0.1, capitalize Scrabble: exercism/problem-specifications#1575
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants