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: Mark gateway retrieval as not reconcilable #8334

Closed
wants to merge 2 commits into from

Conversation

johncowen
Copy link
Contributor

@johncowen johncowen commented Jul 20, 2020

This PR excludes any request that responds with a partial set of results from reconciliation (if the response set is a partial response it shouldn't clean up any records that aren't in the response)

The current way of marking these types of responses are soon to be moved to the adapters so this kind of configuration is kept all together with the rest of the request configuration.

@johncowen johncowen added theme/ui Anything related to the UI backport/1.8 labels Jul 20, 2020
@johncowen johncowen requested a review from kaxcode July 20, 2020 07:48
switch (method) {
case 'findGatewayBySlug':
switch (true) {
case method === 'findGatewayBySlug' || method.indexOf('for-service') !== -1:
Copy link
Contributor

@mikemorris mikemorris Jul 20, 2020

Choose a reason for hiding this comment

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

Seems odd that method could be either a camelCase or hyphen-delimited string? This should likely be an if statement instead of switch(true)...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @mikemorris ,

Seems odd that method could be either a camelCase or hyphen-delimited string?

There were two different ways of starting up a blocking query, part of the work proceeding this was to bring this back to there only being one way to start up a blocking query, no matter which ember 'thing' you were doing it from (routes/controllers/components/templates). We did it like this originally to avoid going off on a tangent whilst trying to move forwards with a feature a while back in #7967 .

The current way of marking these types of responses are soon to be moved to the adapters so this kind of configuration is kept all together with the rest of the request configuration.

I'll be PRing this 'do it in the adapter' approach shortly hopefully. If everything goes well there'll be no need to merge this anymore. This PR was only incase it was required whilst I wasn't around.

If that other PR doesn't happen then we can merge this in.

@johncowen
Copy link
Contributor Author

Just a quick note here, either this or #8384 needs to go in before a 1.8.1 release.

@johncowen
Copy link
Contributor Author

Closing this as this was just a temporary fix waiting on #8384

@johncowen johncowen closed this Jul 29, 2020
@johncowen johncowen deleted the ui/bugfix/no-reconcile-gateways branch September 1, 2020 08:08
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.

2 participants