-
Notifications
You must be signed in to change notification settings - Fork 323
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
refr(enso-org/cloud-v2#1088): Make Project
fields camelCase
#9653
Conversation
Modifies fields of `Project`-like structs to be `camelCase`. This brings more of the backend API into line with the existing style guide. Note that the changes in this commit are breaking if the IDE is run against a backend that hasn't been updated to account for the corresponding API changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just renames.
did not do QA of course - as of writing the corresponding backend PR is still open
}, | ||
packageName: 'Project_root', | ||
/* eslint-disable @typescript-eslint/naming-convention */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefer two separet eslint-disable-next-line
s, that way we don't risk forgetting to re-enable it
// eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-unused-vars | ||
const { opened_by, ...newProjectState2 } = newProjectState | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
const { openedBy, ...newProjectState2 } = newProjectState |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i guess we should change this to use the object.omit
, so that it no longer needs the lint disable:
export function omit<T, Ks extends readonly (string & keyof T)[] | []>( |
... on that note it seems like there's a typo there. oh well... i might fix that at some point in the future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the Ks
the typo? What should it be?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no the typo is in the docs, which say "runtie array" 😅
Ks
is short for keys, maybe it should be renamed too though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo fixed :)
qa 🟢 |
Modifies fields of
Project
-like structs to becamelCase
. This brings more of the backend API into line with the existing style guide.Note that the changes in this commit are breaking if the IDE is run against a backend that hasn't been updated to account for the corresponding API changes.
Pull Request Description
Important Notes
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
./run ide build
.