-
Notifications
You must be signed in to change notification settings - Fork 21
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
UIE-204 Narrow Ajax Usage pt24 (final) #5240
Conversation
7904c0c
to
883b5ed
Compare
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.
Some minor comments but looks good to me!
import { WorkspaceData } from 'src/libs/ajax/WorkspaceDataService'; | ||
import { Capabilities, Capability } from 'src/libs/ajax/WorkspaceDataService'; |
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.
import { WorkspaceData } from 'src/libs/ajax/WorkspaceDataService'; | |
import { Capabilities, Capability } from 'src/libs/ajax/WorkspaceDataService'; | |
import { Capabilities, Capability, WorkspaceData } from 'src/libs/ajax/WorkspaceDataService'; |
You are importing WorkspaceDataService multiple times, recommend just adding WorkspaceData to the existing import.
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.
fixed
import { GoogleStorage } from 'src/libs/ajax/GoogleStorage'; | ||
import { GCSItem } from 'src/libs/ajax/GoogleStorage'; |
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.
import { GoogleStorage } from 'src/libs/ajax/GoogleStorage'; | |
import { GCSItem } from 'src/libs/ajax/GoogleStorage'; | |
import { GCSItem, GoogleStorage } from 'src/libs/ajax/GoogleStorage'; |
Multiple imports, consider importing once.
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.
fixed
- narrow Ajax() usage within last of src/libs/ajax area modules to call Ajax().SubAreaX directly. - demoted Ajax() to no longer be exported from ajax.ts. It is now called AjaxTestingRoot and only a setupAjaxTestUtil method is exposed. - setupAjaxTestUtil is called from appLoader.js since it is no longer incedentally initalized through ajax.ts module load. - unit tests added for setupAjaxTestUtil. - improve mock types where possible
- fixed lingering ajax mock reference
- fixed duplicated imports
b2f11ed
to
1e65d98
Compare
Quality Gate passedIssues Measures |
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.
LGTM, thanks for doing this!
Jira Ticket: https://broadworkbench.atlassian.net/browse/[Ticket #]
Summary of changes:
What
Why
Testing strategy