Skip to content
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(dashboard): isolate dashboards service (remove URM interactions) #19852

Merged
merged 1 commit into from
Nov 4, 2020

Conversation

GeorgeMac
Copy link
Contributor

@GeorgeMac GeorgeMac commented Oct 29, 2020

Closes #19801

This PR does the following:

  • Adds an explicit OwnerID parameter to the Dashboards model.
  • Defines a migration which populates the dashboard's owner id field based on the presence of dashboard owner type URMs.
  • Moves the dashboards service (transport + service definitions) into its own package dashboards.
  • Updates this new package's definitions to not interact with URMs to filter by owner. Instead, we now depend upon the new owner field on the dashboard model.

TODO

@GeorgeMac GeorgeMac force-pushed the gm/dashboards-service branch 3 times, most recently from 3d97fcb to fab0549 Compare October 31, 2020 14:56
@GeorgeMac GeorgeMac changed the base branch from master to gm/telegraf-service October 31, 2020 14:57
feat(dashboard): add owner ID to dashboard model

This adds the explicit OwnerID field to Dashboard and also adds a
migration which populates dashboard owners IDs based on dashboard owner
URMs.

feat(dashboards): isolate service in own package

This change isolates the dashboards service into its own package. It
also updates the API to no longer interface with user resource mappings.
Instead it defines new handlers which rely on the newly populated owner
ID field.

chore(dashboards): port tests from http package into new service transport package

chore(launcher): use dashboard transport package client in launcher tests

chore(kv): remove now defunkt dashboard service implementations
@GeorgeMac GeorgeMac force-pushed the gm/dashboards-service branch from fab0549 to 2d9dd27 Compare October 31, 2020 15:04
@GeorgeMac GeorgeMac marked this pull request as ready for review November 2, 2020 17:02
@GeorgeMac GeorgeMac requested review from a team and gavincabbage and removed request for a team November 2, 2020 17:02
@GeorgeMac GeorgeMac merged commit 5a8bf2b into gm/telegraf-service Nov 4, 2020
@GeorgeMac GeorgeMac deleted the gm/dashboards-service branch November 4, 2020 15:33
GeorgeMac added a commit that referenced this pull request Nov 4, 2020
feat(dashboard): add owner ID to dashboard model

This adds the explicit OwnerID field to Dashboard and also adds a
migration which populates dashboard owners IDs based on dashboard owner
URMs.

feat(dashboards): isolate service in own package

This change isolates the dashboards service into its own package. It
also updates the API to no longer interface with user resource mappings.
Instead it defines new handlers which rely on the newly populated owner
ID field.

chore(dashboards): port tests from http package into new service transport package

chore(launcher): use dashboard transport package client in launcher tests

chore(kv): remove now defunkt dashboard service implementations
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.

Remove interaction with URM service from Dashboard Service
2 participants