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

Emberjs upgrade #526

Merged
merged 84 commits into from
Apr 20, 2023
Merged

Emberjs upgrade #526

merged 84 commits into from
Apr 20, 2023

Conversation

lkleisa
Copy link
Collaborator

@lkleisa lkleisa commented Mar 15, 2023

Ticket: #480

@lkleisa lkleisa self-assigned this Mar 15, 2023
@lkleisa lkleisa changed the title Feature/480 emberjs upgrade Emberjs upgrade Mar 15, 2023
@lkleisa
Copy link
Collaborator Author

lkleisa commented Mar 15, 2023

Commit #77c1a32 fixes view bug, all looks fine in frontend. Frontend tests in pipeline are stuck, I don't know why

@lkleisa
Copy link
Collaborator Author

lkleisa commented Mar 15, 2023

The app works without problems, the only problem is now the testing. Tests are failing, because there is a problem with ember-test-helpers. The files start-app.js and destroy-app.js are importing ember-test-helpers and this is not defined in package.json. I tried to import it globally, but nothing has changed.
Need to look after that on Friday

@lkleisa
Copy link
Collaborator Author

lkleisa commented Mar 15, 2023

ToDo's:

  • Fix the not running tests
  • Fix not possible to delete person (consider: https://deprecations.emberjs.com/v3.x/#toc_array-observers)
  • Fix failing tests
  • Make pipeline happy
  • Are changes in frontend/config/environment needed?
  • Maybe adjust Ember docker image to current ember version
  • Fix or write ticket for strange button in person edit
  • Remove deprecations
  • Remove Dependabot alerts

@lkleisa lkleisa force-pushed the feature/480-emberjs-upgrade branch 5 times, most recently from 73a84f1 to 32a1cdc Compare March 22, 2023 09:42
@lkleisa
Copy link
Collaborator Author

lkleisa commented Mar 24, 2023

Frontend tests are running locally only if you disable the keycloak. You can start a testing backend with the following command: RAILS_ENV=test KEYCLOAK_DISABLED=1 rails s

@lkleisa
Copy link
Collaborator Author

lkleisa commented Mar 24, 2023

Locally, 14 Frontend Tests are failing, in the pipeline there are 18. There are some problems with dropdowns, there are no options which the tests could choose.

@lkleisa lkleisa force-pushed the feature/480-emberjs-upgrade branch from 8b81432 to b9e2e07 Compare April 3, 2023 13:36
@lkleisa
Copy link
Collaborator Author

lkleisa commented Apr 4, 2023

App is currently working with 2 bugs:

  1. Person delete not working
  2. Skill Search pop up behind header menu

Copy link
Contributor

@njaeggi njaeggi left a comment

Choose a reason for hiding this comment

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

looks quite nice so far 🚀, just some little things confuse me a bit

frontend/README.md Outdated Show resolved Hide resolved
config/application.rb Show resolved Hide resolved
frontend/app/components/people-search.js Show resolved Hide resolved
frontend/app/routes/people.js Show resolved Hide resolved
frontend/app/routes/person/skills.js Show resolved Hide resolved
frontend/app/routes/skill-search.js Show resolved Hide resolved
frontend/app/routes/skills/index.js Show resolved Hide resolved
frontend/config/environment.js Outdated Show resolved Hide resolved
frontend/tests/test-helper.js Show resolved Hide resolved
@lkleisa lkleisa marked this pull request as ready for review April 18, 2023 08:08
@lkleisa lkleisa marked this pull request as draft April 18, 2023 08:11
@lkleisa lkleisa linked an issue Apr 18, 2023 that may be closed by this pull request
6 tasks
@lkleisa lkleisa marked this pull request as ready for review April 18, 2023 10:41
Copy link
Member

@Robin481 Robin481 left a comment

Choose a reason for hiding this comment

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

Only small things in the code, good job!

Concerning the functionality of the website:

  • Person-Edit -> The save button doesn't have the correct css anymore
  • Person-Edit -> Add a new Funktion don't fill all of its fields and save -> you will get an error message. Then if you correctly fill out all the fields and save again the save doesn't happen anymore. -> Check if this is a new thing with your update or already a problem on the main branch. If it is the latter just make an issue please :) -> Is also on production, here is the issue
  • Same problem as above with Person-Edit -> Languages -> Same issue as above
  • Pressing reset Skill on a filled out Skill breaks all the bubbles on the current site. I am assuming that this is very similar to the other problems you solved so this shouldn't take too long. If it would take a long time however just create an issue please.
  • Skills -> Editing one of the skills close to the bottom, sometimes the grey bar at the bottom that contains the current Skills version will jump up. Again if it is already a thing on main create an issue.
  • Skills -> When all available skills are rated the bubbles break. They don't break if you sort by rated however.

Besides that it looks really good! 🥳 Good Job!

frontend/app/styles/custom.scss Outdated Show resolved Hide resolved
@lkleisa lkleisa marked this pull request as draft April 18, 2023 11:12
@lkleisa lkleisa force-pushed the feature/480-emberjs-upgrade branch from 1c3b598 to 70ff755 Compare April 18, 2023 11:17
@lkleisa lkleisa marked this pull request as ready for review April 19, 2023 08:34
Copy link
Member

@mtnstar mtnstar left a comment

Choose a reason for hiding this comment

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

nice, a huge PR with an awesome upgrade! 🥳

some small comments you might check. I did not start the application locally for testing as I assume more than one team member did that already.

is there a reason why there's still some jQuery syntax left? you got rid of most of it.

check some small comments ... otherwise go for it 🚀

.github/workflows/rails.yml Outdated Show resolved Hide resolved
.github/workflows/rails.yml Outdated Show resolved Hide resolved
frontend/README.md Outdated Show resolved Hide resolved
frontend/README.md Outdated Show resolved Hide resolved
frontend/app/components/people-skill-show.js Show resolved Hide resolved
frontend/app/components/people-skills-show.js Outdated Show resolved Hide resolved
frontend/ember-cli-build.js Show resolved Hide resolved
@Robin481 Robin481 requested review from njaeggi and removed request for njaeggi April 20, 2023 06:28
@Robin481 Robin481 merged commit 92a8310 into master Apr 20, 2023
@Robin481 Robin481 deleted the feature/480-emberjs-upgrade branch January 26, 2024 08:12
kcinay055679 pushed a commit that referenced this pull request Mar 1, 2024
* Upgrade ember to 3.18.0

* Upgrade ember to 3.19.0

* Upgrade ember to 3.20.0

* Upgrade ember to 3.21.0

* Upgrade ember to 3.22.0

* Upgrade ember to 3.23.0

* Remove ember-fetch

* Upgrade ember to 3.24.0

* Upgrade ember-cli-string-helpers

* Upgrade nodejs version to 14.19.0

* Upgrade ember-qunit

* Upgrade ember to 3.28.0, ember-auto-import, ember-bootstrap, ember-source and add qunit

* Upgrade ember to 3.28.6, add custom ember-cli-icon-rating, set bootstrap version to 3 and update ember-bootstrap, ember-basic-dropdown and ember-power-select-with-create

* Upgrade ember-cli-sass to 10.0.1, bootstrap-sass to 3.4.1, ember-moment to 9.0.1 and add node-sass to dependencies

* Upgrade ember-cli-babel to 7.26.11

* Upgrade ember-data to 3.28.13

* Upgrade ember-cli-htmlbars to 5.7.2

* Upgrade rollup to 1.12.0

* Update browser list

* Update ember-modifier, ember-power-select-with-create and add @ember/string

* Update multiple dependencies (@ember/render-modifiers, ember-intl, ember-validated-form, ember-changeset-validations, ember-cli-app-version, ember-collapsible-panel, ember-confirm-dialog, ember-keyboard, ember-notify, ember-simple-auth, ember-toggle)

* Upgrade ember-bootstrap and use bootstrap 4

* Upgrade @ember/optional-features and remove unused config

* Upgrade ember-route-action-helper

* Use qunit for test method and not ember-qunit

* Fix not running frontend tests

* Update yarn.lock and fix dependency alert

* Add qunit setup to ember test helpers

* Add @service annotation for this.store

* Set jquery-integration to false

* Make submit button blue

* Downgrade ember-keyboard to 6.0.4

* Fix jquery bug

* Regenerate yarn.lock file

* Make eslint happy

* Upgrade jquery

* Replace this.$() with $()

* Change ember version in rails.yml

* Add allowed versions to dependency-lint.js

* Upgrade qunit-dom

* Fix testing errors with qunit-dom

* Fix locale error in tests

* Remove import from $ jquery in tests

* Replace jquery with querySelector in person-cv-export-test

* Try fixing test problems with document queryselector

* Replace document with this.element

* Revert document querySelector to assert.dom

* Set locale in new-people-skills-show-test

* Add ember-fetch

* Fix failing tests, remove $.text() and replace this.render with await render

* Replace $ with document.querySelector

* Remove dependency lint error

* Update yarn.lock

* Remove person form tests because they will be new in feature #351

* Add @initiallyOpened={{false}} and @renderInPlace={{true}} to Ember Power Selects

* Fix daterange-edit-tests with this.$ error

* Remove css bug with header menu over drop down

* Remove bug with not possible to delete person

* Remove bug with overlay from people search on person delete

* Fix tests in frontend

* Remove unused eslint disable

* Move button styling to custom.scss

* Adjust readme with specific ember cli version

* Fix tests in frontend

* Resolve bug with setting something on deleted record

* Adjust eslint disabling

* Fix pipeline bug with calling set on destroyed record

* Remove outcommented rootElement = "ember-testing"

* Revert changes in skill-search-test.js

* Implement feedback from pr

* Fix bug with 2 times clicking on new skill in skill set

* Fix pipeline bug with calling set on destroyed record

* Fix failing text

* Remove bug with multiple selection of ui slider

* Fix bug with first point of ui slider always dark blue marked

* Resolve pr review

* Fix bug when editing people skills

* Remove outcommented code

* Fix failing test people skill edit

* Resolve pr feedback

* Fix bug with resetting people skill and broken slider bubbles

* Replace sleep with setTimeout

* Remove bubbles bug when editing all people skills

* Resolve pr feedback
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.

Update EmberJS Version
4 participants