Skip to content

feat: add tag subscription#1218

Open
osmanhadzic wants to merge 1 commit intoedgehog-device-manager:mainfrom
osmanhadzic:feature/add-tag-sub
Open

feat: add tag subscription#1218
osmanhadzic wants to merge 1 commit intoedgehog-device-manager:mainfrom
osmanhadzic:feature/add-tag-sub

Conversation

@osmanhadzic
Copy link
Contributor

@osmanhadzic osmanhadzic commented Feb 4, 2026

  • Add a GraphQL subscription for tag creation events.

  • Add test coverage to verify that tag subscriptions work as expected.

  • Enables clients to receive real-time updates when new tags are created.

  • Improves responsiveness and removes the need for polling.

  • Ensures correctness and stability of the subscription layer through automated tests.

Testing

  • Add automated tests for tag subscriptions.
  • Verified that subscription events are emitted correctly on tag creation.
  • All existing tests pass.

Subscriptions for update and destroy events were not implemented, as there is currently no action in the system capable of triggering those events.

Change Title

Checklist

  • I have read the CONTRIBUTING.md
  • I have added tests that prove my fix is effective or that my feature works
  • I have added or updated documentation (if appropriate)

Further Comments (optional)

Screenshots / Demos (optional)

- add GraphQL subscription for tag creation events
- add test coverage for tag subscriptions
  to ensure functionality works as expected

Signed-off-by: Osman Hadzic <osman.hadzic@secomind.com>
@coveralls
Copy link

coveralls commented Feb 4, 2026

Pull Request Test Coverage Report for Build 4f686dbb053cad2c9c96490be9a1e7beff95ad56-PR-1218

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+77.7%) to 77.697%

Totals Coverage Status
Change from base Build 21634835105: 77.7%
Covered Lines: 2564
Relevant Lines: 3300

💛 - Coveralls

@osmanhadzic osmanhadzic marked this pull request as ready for review February 5, 2026 13:52
@osmanhadzic osmanhadzic changed the title [WIP ]feat: add tag subscription feat: add tag subscription Feb 5, 2026
@ArnelaL
Copy link
Collaborator

ArnelaL commented Feb 6, 2026

The code looks good to me. I’m just not entirely convinced we need to enable this subscription at the moment. Since we don’t expose GraphQL mutations for this resource, the only way to trigger the create action is via the Device resource mutations.

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