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

ui: Add blocking queries to gateways #7967

Merged
merged 4 commits into from
May 29, 2020

Conversation

kaxcode
Copy link
Contributor

@kaxcode kaxcode commented May 28, 2020

  • Removed gateway adapter, serializer, initializer, and all related tests
  • Moved the gateway-services-nodes endpoint to services adapter and model
  • Added additional test in service to take into account gateway-services-nodes
  • Added a solution to the reconcile method being used on the data returned from gateway-services-nodes

co-authored: @johncowen

@kaxcode kaxcode added the theme/ui Anything related to the UI label May 28, 2020
@kaxcode kaxcode requested a review from a team May 28, 2020 14:33
Copy link
Contributor

@johncowen johncowen left a comment

Choose a reason for hiding this comment

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

I just had a very quick look at this, I'll take a better pass in my morning.

One thing that stood out looking at it all together is maybe we should change the name of the repo method to something plural?

Maybe findGatewayServicesBySlug and then refer to the result of that with a plural variable name instead of a singular gateway (maybe gatewayServices or just services if we are already using that in this Route)?

I dunno, I took a quick scan just now and thats the thing that jumped out at me, so thought I'd mention before I finish up. I think the thing that got me was the items={{gateway}} just looked really strange, like I was setting a plural attribute to a singular thing.

As usual not that important in the scheme of things! But see what you think

Copy link
Contributor

@johncowen johncowen left a comment

Choose a reason for hiding this comment

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

I took another look at this and it all looks super good to me!

I like this more now as we are reusing the Service ember-data models, and we are now also getting testing coverage of HTTP requests with namespaces here.

I left a couple of notes that are 'nice to haves' more than anything, the most important of those is moving the request into the same area as intentions/chain etc. But no biggie in the scheme of things.

Sorry to be quibbling over naming again! 😬

ui-v2/app/routes/dc/services/show.js Outdated Show resolved Hide resolved
ui-v2/app/templates/dc/services/show/services.hbs Outdated Show resolved Hide resolved
@kaxcode kaxcode force-pushed the ui/feature/add-blocking-queries-to-gateways branch from 4b5d1db to 7d32e21 Compare May 29, 2020 14:57
@kaxcode kaxcode merged commit 0aaf0ad into ui-staging May 29, 2020
@kaxcode kaxcode deleted the ui/feature/add-blocking-queries-to-gateways branch May 29, 2020 15:07
johncowen pushed a commit that referenced this pull request Jun 3, 2020
* Remove gateway endpoint adapter, model, and serializer and tests

* Update service tests to handle gateway-services-nodes

* Upgrade consul-api-double to 2.15.2

* Add a fairly temporary shouldReconcile method

Co-authored-by: John Cowen <jcowen@hashicorp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/ui Anything related to the UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants