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
Add foreman_acd #4388
Add foreman_acd #4388
Conversation
b9a52ef
to
50a2aea
Compare
acb8433
to
373f6ce
Compare
BuildRequires: %{?scl_prefix}npm(jquery) < 2.3.0 | ||
BuildRequires: %{?scl_prefix}npm(react-intl) >= 2.8.0 | ||
BuildRequires: %{?scl_prefix}npm(react-intl) < 3.0.0 | ||
# end package.json dependencies BuildRequires |
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.
Not that this blocks, but please consider moving to use of the foreman vendor JS.
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.
Thanks @ehelms for your remark. I had a look at other plugins and no-one is currently using it (unfortunately).
Should I then ONLY use the foreman-vendor package and remove all other npm packages or should I add foreman-vendor and still use the npm packages?
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.
Plugins like foreman_ansible
are using it. They also have additional dependencies. Probably best to ask the UI team. I'm sure @sharvit will happily guide you in the right direction.
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 build process will replace all the modules you are using with the modules that exist in the vendor anyway. (if they exist in the vendor)
It's a good practice to install the vendor as a dep and clean up modules from your package.json so your plugin declares what vendor version it needs. It will help with upgrading once there are breaking changes to the vendor since you will know about them in advance.
Thanks @sharvit. Means, remove all dependencies and replace them with just and only foreman-vendor? |
Only if they exist in the vendor, see: https://github.com/theforeman/foreman-js/blob/master/packages/vendor-core/package.json#L27 |
Thanks. BTW, jQuery is really old and has some security issues (says GitHub) |
373f6ce
to
dcaa43a
Compare
Yes, actually we want to be in a point where we can drop |
b7b102c
to
8c94777
Compare
Thanks @sharvit for your explanation. I will have a look how to get rid of jquery (soon). Currently, the build RPM tasks failes because of: Is it related to different version of lodash in https://github.com/theforeman/foreman-js/blob/f0e3fe1d27255f77e2a6303185ea3e578c9845a4/packages/vendor-core/package.json#L50 and
|
It might be that but I don't think it's related since |
hmm. Do you have another idea whats wrong? Previously. without using foreman-vendor-js the build was successfully (used lodash 4.17.11). |
|
b05dcc2
to
7e9883f
Compare
Package build was successfully after:
|
Very odd. It might happen if you are importing partials from lodash (e.g.
You shouldn't import patternfly in your |
I can the _variables -> foreman-js/variables import but I can not find the |
You should not load them internally, all the pf partials should exist in https://github.com/theforeman/foreman-js/blob/master/packages/vendor-core/scss/vendor-core.scss If they are not, we should create a PR and add them to the |
c637b59
to
4e26d08
Compare
Removed patternfly-(react) dependencies. Unfortunately, lodash must still be a dependency - otherwise it doesn't build. |
[test rpm] |
2 similar comments
[test rpm] |
[test rpm] |
[test rpm] |
@sbernhard Needs updates to latest dependencies |
4e26d08
to
923d63e
Compare
No description provided.