-
Notifications
You must be signed in to change notification settings - Fork 318
chore(tests): backfilling tests for the @policy
directive
#8230
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
base: dev
Are you sure you want to change the base?
Conversation
✅ Docs preview has no changesThe preview was not built because there were no changes. Build ID: 75eb3d32e0b1f67dfad4cac8 |
@aaronArinder, please consider creating a changeset entry in |
private: Private @join__field(graph: SUBGRAPH_A) @policy(policies: [["admin"]]) | ||
public: Public @join__field(graph: SUBGRAPH_A) | ||
opensecret: OpenSecret @join__field(graph: SUBGRAPH_A) |
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.
we want another test that has a field defined like this. this the one that we are unsure about (although all the other ones are excellent to test as well 🙏 ):
private: Private @join__field(graph: SUBGRAPH_A) @policy(policies: [["admin"]]) | |
public: Public @join__field(graph: SUBGRAPH_A) | |
opensecret: OpenSecret @join__field(graph: SUBGRAPH_A) | |
private: Private @join__field(graph: SUBGRAPH_A) @policy(policies: [["admin"]]) | |
public: Public @join__field(graph: SUBGRAPH_A) | |
opensecret: OpenSecret @join__field(graph: SUBGRAPH_A) | |
secure: Secure @join__field(graph: SUBGRAPH_A) |
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.
ptal; I think it's good now?
private: Private @join__field(graph: SUBGRAPH_A) @policy(policies: [["admin"]]) | ||
public: Public @join__field(graph: SUBGRAPH_A) | ||
opensecret: OpenSecret @join__field(graph: SUBGRAPH_A) | ||
secure: Secure @join__field(graph: SUBGRAPH_A) |
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.
line where secure
was added (@lrlna)
a7dc0a6
to
8bc9880
Compare
@policy
and interfaces@policy
directive
18c1e35
to
3c061db
Compare
3c061db
to
20b7a52
Compare
Checklist
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
Exceptions
Note any exceptions here
Notes
Footnotes
It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this. ↩
Configuration is an important part of many changes. Where applicable please try to document configuration examples. ↩
A lot of (if not most) features benefit from built-in observability and
debug
-level logs. Please read this guidance on metrics best-practices. ↩Tick whichever testing boxes are applicable. If you are adding Manual Tests, please document the manual testing (extensively) in the Exceptions. ↩