-
Notifications
You must be signed in to change notification settings - Fork 35
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
GraphQL Mock Query Argument Handling #942
Conversation
|
||
export default class ElideFactsSerializer extends EmberObject implements NaviFactSerializer { | ||
normalize(payload: AsyncQueryResponse, request: RequestV1): ResponseV1 | undefined { | ||
const requestTable: string = request.logicalTable.table; | ||
normalize(payload: AsyncQueryResponse, request: RequestV1 | RequestV2): ResponseV1 | undefined { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just assume v2 from now on?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is merging onto master not request-v2
@@ -1,11 +1,25 @@ | |||
// TODO: Replace any with type supplied by new version of mirage | |||
import { grains } from './graphql'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we rebase on this with the new file name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new file names are in the request v2 branch and this is being merged into master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Ultimately, we will need this in v2. If we merge to master, we will need to rebase v2 on master sooner than later.
Moving to a PR to merge into |
Description
The elide fact mock is pretty bare bones and can't alter the results based on filters, sorts, or limits in the request.
Proposed Changes
Screenshots
License
I confirm that this contribution is made under an MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.