Skip to content

feat(graph-proxy): add trigger namespace querying - #1743

Merged
Oli-Jones475 merged 1 commit into
mainfrom
query-trigger-namespace
Oct 19, 2026
Merged

Oli-Jones475 merged 1 commit into
mainfrom
query-trigger-namespace

Conversation

@Oli-Jones475

Copy link
Copy Markdown
Contributor

Allow querying of the trigger namespace through graph proxy

Comment thread backend/graph-proxy/src/graphql/triggers.rs Outdated

@JamesDoingStuff JamesDoingStuff left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realise I never wrote any details in this ticket - sorry! - but would you mind changing the field name from namespace to visit please, to match the name of the parameter used to set it? Namespace is just how it's implemented internally.
I also think it would also be good if the triggers that exist in the events namespace returned "all" for visit, to show that they will run jobs in all visits, but that can be future work if necessary

@Oli-Jones475
Oli-Jones475 force-pushed the query-trigger-namespace branch 2 times, most recently from 3bbbccf to 8672375 Compare October 19, 2026 09:53

@JamesDoingStuff JamesDoingStuff left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks! One suggestion that might make user-facing docstring clearer

Comment thread backend/graph-proxy/src/graphql/triggers.rs Outdated
Rename namespace field to visit

Write events namespace as any for visit

Fix tests

Handle None case properly

Test unknown case

Format

Update backend/graph-proxy/src/graphql/triggers.rs

Co-authored-by: James Gilbert <152407564+JamesDoingStuff@users.noreply.github.com>
@Oli-Jones475
Oli-Jones475 force-pushed the query-trigger-namespace branch from 4bf4d3c to 1480773 Compare October 19, 2026 10:33
@Oli-Jones475
Oli-Jones475 merged commit a45df28 into main Oct 19, 2026
71 checks passed
@Oli-Jones475
Oli-Jones475 deleted the query-trigger-namespace branch October 19, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants