[AERIE-1906] Resolve SerializedValue LGTM errors#238
Conversation
merlin-sdk/src/main/java/gov/nasa/jpl/aerie/merlin/protocol/types/SerializedValue.java
Show resolved
Hide resolved
merlin-sdk/src/test/java/gov/nasa/jpl/aerie/merlin/protocol/types/SerializedValueTest.java
Outdated
Show resolved
Hide resolved
merlin-sdk/src/test/java/gov/nasa/jpl/aerie/merlin/protocol/types/SerializedValueTest.java
Outdated
Show resolved
Hide resolved
|
Sorry... GitHub notifications never actually tell me a PR is just a draft. 🤦♂️ |
No worries! All solid feedback :) Thanks |
e06334d to
c3a15a1
Compare
c3a15a1 to
173be82
Compare
|
Opened this PR prematurely. Am investigating the |
173be82 to
480b9de
Compare
...-server/src/main/java/gov/nasa/jpl/aerie/scheduler/server/services/GraphQLMerlinService.java
Show resolved
Hide resolved
skovati
left a comment
There was a problem hiding this comment.
LGTM! (heh) Smart move refactoring SerializedValue into an interface.
Should we create a separate ticket to capture the string escape work or were you planning on implementing that in this PR?
adrienmaillard
left a comment
There was a problem hiding this comment.
Looks good, thank you.
Good point! I'll check in with Adrien on this, the preexisting |
Make `SerializedValue` an interface, eliminating the need for explicit `equals()`, `toString()`, and `hashCode()` implementations.
ce351ee to
88d926a
Compare
- Capitalize endpoint method names from sveltejs/kit#5513 - Upgrade e2e Banananation from NASA-AMMOS/aerie#238
|
Why are we doing sanitization for GQL instead of using variables? That's one of the great value propositions of the GraphQL standard - built in sanitization. |
|
Sure! I'll change the wording of the ticket. |
|
I don't think my comment is scoped to this ticket as the string formatting predates this ticket. Specifically looking at lines like where we were already doing string templating instead of using variables |
|
Yup! But your point 100% still stands, we should use variables. https://jira.jpl.nasa.gov/browse/AERIE-1949 should address this. |
- Capitalize endpoint method names from sveltejs/kit#5513 - Upgrade e2e Banananation from NASA-AMMOS/aerie#238
- Capitalize endpoint method names from sveltejs/kit#5513 - Upgrade e2e Banananation from NASA-AMMOS/aerie#238
- Capitalize endpoint method names from sveltejs/kit#5513 - Upgrade e2e Banananation from NASA-AMMOS/aerie#238
Description
From #220.
Resolves LGTM
SerializedValueerrors reported here.Verification
All tests passing.
Documentation
None.
Future work
Resolve LGTM warnings (see https://lgtm.com/projects/g/NASA-AMMOS/aerie/alerts/?mode=tree).