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
Upgrade to Vue 3 #1306
Comments
List of components we are using: kinow@ranma:~/Development/java/jena/jena/jena-fuseki2/jena-fuseki-ui$ grep -r -H -h -E "<b-.*[\s|>]" -o src | awk -F" |>" '{ print $1 }' | cut -c2- | sort | uniq -c | sort -h -r
32 b-col
26 b-row
13 b-container
9 b-card-body
7 b-card-header
7 b-card
5 b-alert
4 b-spinner
3 b-skeleton
3 b-nav-item
2 b-navbar-nav
2 b-nav
2 b-lis
2 b-input-group
2 b-form-s
2 b-card-title
1 b-tr
1 b-th
1 b-progress
1 b-overlay
1 b-navbar-toggle
1 b-navbar-brand
1 b-navbar
1 b-list-group
1 b-input-group-append
1 b-form
1 b-collapse
1 b-button
1 b-btn
1 b-badge Most components are really easy to substitute, like |
😄 just for getting the regex to work! |
Same title as #1251. Is this a duplicate? continuation? sub-task? |
Bug in the regex, some
|
Major progress - PR "Replace Bootstrap Vue by vanilla Bootstrap 5 CSS classes" #1307 merged. |
Hi @kinow, I'm having problems in the maven build with jena-fuseki-ui. I'm assuming it is a configuration problem on my side. I did a fairly clean Ubuntu install on this machine but local setting for my user account were copied over from the old machine. StepsA clean git-clone of Jena.
Test failure
Setupcypress is installed (
It is different to before - there is only one cypress failure in datasets. Attached informationAttached: Full log of Extract of the maven output:
|
Huh interesting. Maybe I didn't write the test well enough and it could be improved. Will have a look at this issue this weekend Andy. |
The only workaround I can find is to disable the e2e tests with
So it seems the webapp is functioning correctly.
Have a weekend! We could check-in |
So it looks like this could be really just a brittle test.
I am! Just passed by sagrada familia, now drinking a clara with boquerones. But I have a delivery at work for next Friday, so i will be online in a few hours anyway. I will try to make the test more reliable, but if I cannot make it, I will mark it as optional so that that doesn't fail the build (and add a note to fix it). Lots of users are moving from Cypress to Playwright. But I think I will refrain from another major change in the UI after Vue2 -> Vue3 (and we had the Backbonejs -> Vue2 before too). https://www.reddit.com/r/javascript/comments/yd3dr8/on_migrating_from_cypress_to_playwright/ |
Executed tests four times with |
@afs can you try this patch and let me know if the output of the test changes, please?
|
Tried on two machines - my works laptop and my personal desktop. The problems I encountered are my personal desktop Desktop: with the change the screen shot show error at "12" as before which is presumably the inserted test. I have no idea what the difference between the machines could possibly be! I'll search. At least I can run a build and a release on some setup. |
Interesting. The part about clearing the cache shouldn't be a requirement for Cypress. It launches the browser you select to run the e2e tests (or the default browser), and uses a separate profile and also customizes its initialization (e.g. which extension to use, what browser settings to have, etc) 1. Footnotes |
I have a sort-of fix -- #1606. The two machines I have tried are very similar software-wise but the working on (laptop) runs Wayland for graphics and the other (desktop, with an NVIDIA GeForce card) run X11. nvida+wayland isn't perfect and glitches a bit. desktop+wayland works most of the time. The test fail at a 7.5 second timeout (not that it seems to be that long). So what's odd about the Fuseki UI? Guess: loading Triply which is a slow point. (I tried different default system browser but no joy there.) |
At another project I think I had a default timeout of 60 seconds 😄 so that looks like a good fix to me. Thanks for troubleshooting it @afs ! |
I will try to reproduce it again. If I manage to get an environment with the same error I can troubleshoot it. Basically what I will use for that is the chrome browser, either using Cypress' tools (like the step by step execution, that one that you move your mouse over the test steps to see what the UI looks like) with the browser console, or removing parts of the test until I can isolate what's causing it. When I do the latter I always change the test name so Cypress runs just that one test, and not everything. You can try that locally by renaming any test to |
The problem is my machine so don't worry too much. If it interferes with doing a release, I can either use another machine, or switch out the test just for the release. |
Might it make sense to control enabling/disabling e2e via a maven profile? maybe define a new maven profile intended to be used by CI that would be easy to enable/disable by specifying an env var, system property, etc when maven is invoked? |
Hi @phillipross, |
Creating an issue so I don't lose track of this.
We are using Bootstrap Vue for the UI. It gives developers the same that vanilla Bootstrap offers, but instead of using CSS classes directly, it gives them Vue components, ready to use.
While it was great for rapid development for the migration of Backbone.JS to Vue.js, unfortunately now we are stuck with Vue 2 as Bootstrap Vue has not upgraded to Vue 3 yet - bootstrap-vue/bootstrap-vue#5196
I think we might be able to move to vanilla Bootstrap and create simple components, assuming we are not using too many Bootstrap Vue components.
Alternatively, we can move to another UI library, with the disadvantage that unless it's a variation of Bootstrap, we would have a different UI look and feel.
Once this is solved, we might be ready to move to Vue 3 and Vite.
The text was updated successfully, but these errors were encountered: