-
Notifications
You must be signed in to change notification settings - Fork 7
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
refactor!: change key format from camel case or snake case to lower hyphen #398
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 tasks
matthiasschaub
changed the title
Lower hyphen keys
Change key format from camel case or snake case to lower hyphen #386
Jul 19, 2022
matthiasschaub
force-pushed
the
lower-hyphen-keys
branch
from
July 22, 2022 12:48
6cd6321
to
c2db38d
Compare
matthiasschaub
added
code quality
Related to our standards for 'good' code
breaking
This will break previous versions. Documentation and Changelog update compulsory
api
labels
Jul 22, 2022
matthiasschaub
force-pushed
the
lower-hyphen-keys
branch
2 times, most recently
from
March 7, 2023 16:03
e3efb19
to
88ef479
Compare
matthiasschaub
changed the title
Change key format from camel case or snake case to lower hyphen #386
refactor!: change key format from camel case or snake case to lower hyphen #386
Mar 7, 2023
matthiasschaub
changed the title
refactor!: change key format from camel case or snake case to lower hyphen #386
refactor!: change key format from camel case or snake case to lower hyphen
Mar 7, 2023
matthiasschaub
force-pushed
the
lower-hyphen-keys
branch
from
March 13, 2023 09:44
55e25a3
to
9f67d8b
Compare
joker234
requested changes
Mar 14, 2023
matthiasschaub
force-pushed
the
lower-hyphen-keys
branch
from
March 14, 2023 15:04
0a04787
to
790547b
Compare
joker234
previously approved these changes
Mar 14, 2023
Do not use dacite.from_dict to create instance of Metadata class.
indicator and report keys are now lower hyphen instead of snake-case
and allow population of pydantic model by field name
grep -rl layerKey | xargs sed -i 's/layerKey/layer_key/g'
grep -rl featureId | xargs sed -i 's/featureId/feature_id/g'
Rename request parameter to be in lower hyphen case
Co-authored-by: Johannes Visintini <johannes.visintini@heigit.org>
matthiasschaub
force-pushed
the
lower-hyphen-keys
branch
from
March 14, 2023 15:08
790547b
to
1e7113b
Compare
joker234
approved these changes
Mar 14, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
api
breaking
This will break previous versions. Documentation and Changelog update compulsory
code quality
Related to our standards for 'good' code
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Make indicator and report keys as well as API parameters consistent by changing the format from camel case or snake case to lower hyphen.
Throughout the code base indicator and report keys where changed from camel case (
MappingSaturation
) to lower hyphen (mapping-saturation
).API parameter and variable names where changed from lower camel case (
layerKey
) to lower hyphen (layer-key
) in the case of API paramter or snake-case (layer_key
) in the case of variable names.Layer keys have not been changed from snake case to hyphen case.
Corresponding issue
Related issues: #485 #50
Checklist
main
(e.g. throughgit rebase main
)