-
Notifications
You must be signed in to change notification settings - Fork 40
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
feat: Add descriptions to all system defined GQL stuff #1387
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1387 +/- ##
===========================================
+ Coverage 70.56% 70.73% +0.16%
===========================================
Files 184 184
Lines 17838 17875 +37
===========================================
+ Hits 12588 12644 +56
+ Misses 4293 4280 -13
+ Partials 957 951 -6
|
f297842
to
877f860
Compare
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 a few todos related to the text in the descriptions.
Thanks for adding the tests related to empty sets.
` | ||
dockeysArgDescription string = ` | ||
An optional set of dockeys for this field. Only documents with a dockey | ||
matching an dockey in the given set will be returned. If no documents match, |
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.
todo: matching *a* dockey
.
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.
- a dockey
An optional filter for this join, if none of the related records do | ||
not meet the filter criteria the host record will still be returned, |
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.
todo:if none of the related records meet the filter criteria
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.
- rm extra words
GroupByArgDescription string = ` | ||
An optional set of fields for which to group the contents of this field by. | ||
If this argument is provided, only fields used to group may be rendered in | ||
he immediate child selector. Additional fields may be selected by using |
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.
todo: in the immediate
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.
- Add missing letter
commit composed of the field level commits and the prior composite commit | ||
(in the case of an update). |
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.
suggestion: field level commits and, in the case of an update, the prior composite commit
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.
- Nice suggestion, will do - thanks
to determine the state of the data model at the time of commit. | ||
` | ||
commitDeltaFieldDescription string = ` | ||
The CBOR encoded representation of the new value that saved as part of this commit. |
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.
todo: of the value that is saved
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'm 50-50 on that, but will change
- rm new
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.
It was mostly the "is" that was missing :)
These are the set of fields supported for grouping by in a commits query. | ||
` | ||
commitsQueryDescription string = ` | ||
Returns a set of commits matching any provided criteria, if no arguments are |
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.
todo: criteria. If no
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.
:) feels a bit like a nitpick lol, but will change 😁
-
.
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.
It just that it feels like 2 sentences so the comma feels like the wrong break.
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.
haha I agree with you lol, I'm just not sure I'd have flagged this as it is quite minor
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 think that I might be a bit more picky here because it's publicly displayed text 😅
provided all commits in the system will be returned. | ||
` | ||
latestCommitsQueryDescription string = ` | ||
Returns a set of head commits matching any provided criteria, if no arguments are |
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.
todo: criteria. If no
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.
-
.
values. | ||
` | ||
eqOperatorDescription string = ` | ||
The equality operator, if the target matches the value the check will pass. |
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.
todo: From here to line 205, I would change , if
to . If
.
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 prefer the comma, if you really don't like it I can suggest -
instead?
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.
It feels like it should be all part of the same sentence. "-" is totally fine too.
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.
changed
Indicate the primary side of a one-to-one relationship. | ||
` | ||
relationDirectiveDescription string = ` | ||
Allows the explicit definition of relationship attributes, instead of using the system generated |
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.
todo: remove comma.
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.
- rm comma
877f860
to
42c9f0d
Compare
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.
Cheers for taking care of these.
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.
Thanks for doing the changes Andy!
…#1387) * Remove out of date todo * Remove commented out code * Remove commented out code * Remove unused GQL type (Delta) * Do not overwrite key field declaration * Add test for empty groupBy * Add empty order test * Add limit:0 test * Add test for update with nonexistantID * Add test for delete ids, empty set * Add field description to gql fields
Relevant issue(s)
Resolves #796
Description
Adds descriptions to all system defined GQL stuff (fields, args, enum values, etc). Also adds a couple of missing tests that I needed in order to be sure of the behaviour I was documenting.
I'm not terribly fussed about the location of the constant declarations, this will need to be redone once Pavneet and co have decided on how they wish to manage these long-term.
All the descriptions have been added in the last commit only, other commits include misc changes (such as tests).
Tested via Altair: