-
Notifications
You must be signed in to change notification settings - Fork 948
Refactor QueryParams #4485
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
Refactor QueryParams #4485
Conversation
|
Binary Size ReportAffected SDKs
Test Logs
|
Size Analysis Report |
} | ||
|
||
/** | ||
* What does isDefault() mean? |
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.
Were you planning to get an answer before checking in the code?
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.
Removed the comment. But what does it mean @schmidt-sebastian ?
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.
It's a query with no filters and no constraints with the default ordering (by priority)
if (this.endNameSet_) { | ||
qs[REST_CONSTANTS.END_AT] += ',' + stringify(this.indexEndName_); | ||
} | ||
export function queryParamsGetQueryObject( |
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.
FYI It looks like you re-ordered some of the methods, which makes this a internals impossible to review. I trust that you updated the methods correctly.
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.
Tests are passing!
} | ||
|
||
/** | ||
* What does isDefault() mean? |
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.
It's a query with no filters and no constraints with the default ordering (by priority)
I kept simple getters and
copy()
within the class. Other methods are changed to functions.