Fixes #37882 - Remove @theforeman/vendor - #10342
Conversation
|
In this PR we had to update to npm 8 to get the "overrides" attribute in package.json - "Overrides provide a way to replace a package in your dependency tree with another version, or another package entirely. ". @theforeman/packaging are we ok to update to NPM 8+? |
d48bcac to
005f580
Compare
|
@theforeman/packaging are we ok to update to NPM 8+? |
There was a problem hiding this comment.
Not a real review, but I'd prefer to wrap up https://community.theforeman.org/t/drop-debian-11-ruby-2-7-and-nodejs-14-support-in-foreman-3-14/40503 first. Once we drop NodeJS 14 we should get NPM 8 or higher out of the box on all our supported platforms and that simplifies this PR.
Edit: for completeness, the NPM versions in packaging:
- EL9 with NodeJS 18: 10.2.4 (
dnf module enable nodejs:18 && dnf install npm) - Debian 12 with NodeJS 17: 9.2.0 (https://packages.debian.org/bookworm/npm)
- Ubuntu 22.04: TODO (OS repo has NodeJS 12 so we use nodesource; 14 at the moment)
When we merge #10406 it should be something we get for free. |
There was a problem hiding this comment.
Moved to a react page anyway
There was a problem hiding this comment.
move to window directly, not under tfm
|
dnd still not working in host edit with vm ware - need to fix |
005f580 to
6fbd51d
Compare
6fbd51d to
51e67a1
Compare
There was a problem hiding this comment.
51e67a1 to
b6a647e
Compare
b6a647e to
785ab7e
Compare
|
Packaging status:
|
57ba564 to
01cee4f
Compare
|
@MariaAga seems unrelated, but can you make sure it's OK: https://github.com/theforeman/foreman/actions/runs/16148221131/job/45572685027?pr=10342#step:16:728 |
|
@ShimShtein it is unrelated (org tests just randomly fail) |
|
/packit build |
Mhh, react-bootstrap is a peerDependency of react-ellipsis-with-tooltip, and our packaging doesn't pull those in. |
01cee4f to
8c47a76
Compare
is this a hint for me to add it? |
|
not yet :) |
| "datatables.net-bs": "1.13.5", | ||
| "datatables.net-dt": "1.13.5", | ||
| "datatables.net": "1.13.5", | ||
| "diff": "^4.0.1", |
There was a problem hiding this comment.
theforeman/foreman-packaging#12212 bumped the packaged diff to 5.2.0, can we do the same here?
There was a problem hiding this comment.
I'll go check if we can use v5
There was a problem hiding this comment.
@MariaAga , I have matched the diff version to unidiff 1.0.4
There was a problem hiding this comment.
Actually cant find where we even use diff?
There was a problem hiding this comment.
I think the last use was here? 0b167ac#diff-9bfb62f05186261a2516e33d3b97b39947316f570fde17c8cd91f32f99d51835
So I guess I can just update now and delete later
|
#10601 - let's see if adding react-bootstrap helps. Edit: Well, at least it's a different error now? 😿 |
8c47a76 to
92da380
Compare
and seperate javascript and react app imports
92da380 to
4012727
Compare
|
no runtime error for not adding react-router and react-bootstrap to webpack vendor list |
|
/packit build |
|
green packit! 🍏 |
NodeJS 18.20.6 with NPM 10.8.2 |
evgeni
left a comment
There was a problem hiding this comment.
📦 wise this is fine and I have no concerns, especially as Packit is green
| __dirname, | ||
| '..', |
There was a problem hiding this comment.
| __dirname, | |
| '..', | |
| root, |
There was a problem hiding this comment.
then in the next pr (scalprum)
| __dirname, | ||
| '..', |
There was a problem hiding this comment.
| __dirname, | |
| '..', | |
| root |
Depends on #10345 #10239
"Fixes #37904 - move css from vendor to foreman " Does not bread plugins, but this pr does:
Some plugins have
"peerDependencies": "@theforeman/vendor"or assumetheforeman/vendorwill be available from core, this PR removed theforeman/vendor so it will not be available anymore, and their webpack build will fail with:and will have this console error: