-
Notifications
You must be signed in to change notification settings - Fork 667
CONSOLE-4837: Migrate console-app to dynamic
#15620
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
CONSOLE-4837: Migrate console-app to dynamic
#15620
Conversation
|
@logonoff: This pull request references CONSOLE-4837 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.21.0" version, but no target version was set. DetailsIn response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
3335838 to
ce0c4e0
Compare
|
/label px-approved |
f471f26 to
79a9066
Compare
|
/hold I am stopped by my own tests... |
7ce9b1e to
0fd40ff
Compare
|
/retest |
|
@logonoff: This pull request references CONSOLE-4837 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.21.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/assign @yapei @vojtechszocs |
37b307f to
6df6102
Compare
6df6102 to
9873d1f
Compare
af19e81 to
04ce49e
Compare
Note: the cycles produced by the frontend test are NOT as a result of new code introduced in this PR. When we check for import cycles in the frontend test, we exclude any cycle with `get-active-plugins.js`. This is because there were a lot of cycles that were very difficult to fix due to the structure of how the console `PluginStore` is loaded. Thus, any import cycle which includes the active plugins module doesn't count as a cycle in our eyes. Meanwhile, each plugin entry point `plugin.tsx` is imported by the code produced by `get-active-plugins.js`. Now that we are trying to remove `plugin.tsx` from `console-app,` we are uncovering a bunch of import cycles that were previously not counted as `get-active-plugins.js` was previously in the cycle. Now that the cycles no longer include `get-active-plugins`, we are counting them. Reverting only the changes to `plugin.tsx` shows this -- the detected cycles no longer appear. Due to the amount of cycles that have to be dealt with (over 200), I want to address this in future work. Claude prompt for future me: This project currently has a bunch of import cycles. Import cycles can be detected by running "yarn check-cycles" in the `frontend` directly of this repository, and reading `frontend/.webpack-cycles`. Your job is to fix all of the import cycles so that `yarn check-cycles` exits with code 0 instead of 1. You will fix cycles by rewriting imports--good examples can be observed in the last git commit, "CONSOLE-4837: Fix cycles". You will rewrite the imports by replacing their "index" or "barrel" file imports with the direct equivalent. After rewriting imports, run `yarn check-cycles` again to confirm that all cycles have been fixed. Repeat until there are no more import cycles.
04ce49e to
ce12a9e
Compare
|
/verified by @XiyunZhao
|
|
@XiyunZhao: This PR has been marked as verified by DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: logonoff, vojtechszocs The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@logonoff: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |

Note: the cycles produced by the frontend test are NOT as a result of new code introduced in this PR.
When we check for import cycles in the frontend test, we exclude any cycle with
get-active-plugins.js. This is because there were a lot of cycles that were very difficult to fix due to the structure of how the consolePluginStoreis loaded.Thus, any import cycle which includes the active plugins module doesn't count as a cycle in our eyes.
Meanwhile, each plugin entry point
plugin.tsxis imported by the code produced byget-active-plugins.js. Now that we are trying to removeplugin.tsxfromconsole-app,we are uncovering a bunch of import cycles that were previously not counted asget-active-plugins.jswas previously in the cycle. Now that the cycles no longer includeget-active-plugins, we are counting them.Reverting only the changes to
plugin.tsxshows this -- the detected cycles no longer appear.Due to the amount of cycles that have to be dealt with (over 200), I want to address this in future work.