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

[#193] update the configuration to match the console template #228

Merged
merged 2 commits into from
Jul 11, 2024

Conversation

lavocatt
Copy link
Collaborator

@lavocatt lavocatt commented Jul 8, 2024

The configuration got imported from https://github.com/openshift/console-plugin-template at commit
2b4dbe4b4313e258be1754815614cf7d47f45c11

The latest patternfly4 compatible versions where recovered from:
https://github.com/openshift/console/blob/649af93d7cb60e7cd9007c4a9a69ef74ec791680/frontend/package.json#L141

The package.json got sorted with npx sort-package-json for easier
comparisons.

Hack:
For some reason, there's something strange happening with victory-core.
If we remove this old configuration from the package.json file:

  "resolutions": {
    "victory-core": "<36.9.0"
  },
  "overrides": {
    "victory-core": "<36.9.0"
  },

Then there are crashes running the metrics test suite (at the patternfly
level). If we put it back, the UI won't render the metrics anymore.

What is more surprising is that putting this section back, running yarn,
removing it and running yarn once again fixes both issues. That's
the reason why I'm leaving that piece of documentation in the commit, in
case we need it back at some point.

What we most probably need to do is to upgrade ASAP to patternfly 5.
Fixes #193

@lavocatt
Copy link
Collaborator Author

lavocatt commented Jul 8, 2024

A possible followup for this PR: update patternfly to version 5

@lavocatt lavocatt changed the title [#193] update to the dynamic plugin sdk version 1.3.0 [#193] update the configuration to match the console template Jul 10, 2024
@lavocatt lavocatt force-pushed the versionupdate branch 2 times, most recently from 9620274 to 4f08dd0 Compare July 10, 2024 13:30
There's no more v5 react-router deployed with the latest versions of the
dynamic plugin sdk. Updating is mandatory.
From https://github.com/openshift/console-plugin-template at commit
2b4dbe4b4313e258be1754815614cf7d47f45c11

The latest patternfly4 compatible versions where recovered from:
https://github.com/openshift/console/blob/649af93d7cb60e7cd9007c4a9a69ef74ec791680/frontend/package.json#L141

The package.json got sorted with npx sort-package-json for easier
comparisons.

Hack:
For some reason, there's something strange happening with victory-core.
If we remove this old configuration from the package.json file:

```
  "resolutions": {
    "victory-core": "<36.9.0"
  },
  "overrides": {
    "victory-core": "<36.9.0"
  },
```

Then there are crashes running the metrics test suite (at the patternfly
level). If we put it back, the UI won't render the metrics anymore.

What is more surprising is that putting this section back, running yarn,
removing it and running yarn once again **fixes both issues**. That's
the reason why I'm leaving that piece of documentation in the commit, in
case we need it back at some point.

What we most probably need to do is to upgrade ASAP to patternfly 5.
package.json Show resolved Hide resolved
Copy link
Collaborator

@Msarawan Msarawan left a comment

Choose a reason for hiding this comment

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

Changes LGTM. Good work Thomas!

@Msarawan Msarawan merged commit 62e5240 into artemiscloud:main Jul 11, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Openshift 4.15: Dev build and prod build are diverging in behavior
2 participants