Skip to content

ERA-11293 [Part 2: Update ejected dependencies] #1279

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

Merged
merged 1 commit into from
Apr 22, 2025

Conversation

luixlive
Copy link
Contributor

@luixlive luixlive commented Apr 9, 2025

What does this PR do?

Update the dependencies that were exposed after ejecting Create React App, with the exception of dependencies involving the upgrade to React 19, Jest 29 and React Testing Library 16.

Relevant link(s)

Where / how to start reviewing (optional)

All the changes are directly related to the update of the dependencies. Some of them had breaking changes, so certain parts of the code required to be modified. Also, the updates of certain libraries resulted in new warnings being thrown so I cleaned all the faulty code.

Any background context you want to provide(if applicable)

This is the second sequential PR to move away from CRA and Webpack. All we are doing is updating all the libraries to be ready to migrate to the newest versions of React and Jest.

@luixlive luixlive added the deploy label Apr 9, 2025
@luixlive luixlive temporarily deployed to ERA-11293-update-ejected-dependencies April 9, 2025 21:03 — with GitHub Actions Inactive
@luixlive luixlive marked this pull request as draft April 9, 2025 21:03
@luixlive luixlive added deploy and removed deploy labels Apr 9, 2025
@luixlive luixlive marked this pull request as ready for review April 9, 2025 22:34
@luixlive luixlive requested review from gaboDev and JoshuaVulcan April 9, 2025 22:34
Copy link
Contributor

@gaboDev gaboDev left a comment

Choose a reason for hiding this comment

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

Left a question, also I'm seeing a 401 invalid_client error when trying to login into feature env

@@ -94,8 +93,8 @@ const AddToIncidentModal = ({ id, onAddToExistingIncident, onAddToNewIncident })
)}

{hasMore
? <li className={`${styles.listItem} ${styles.loadMessage}`} key={0}>{t('modalBody.loadingItem')}</li>
: <li className={`${styles.listItem} ${styles.loadMessage}`} key="no-more-events-to-load">
? <li key={0}>{t('modalBody.loadingItem')}</li>
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure what is happening here, but from this file and some of the following ones, the className prop was removed, Were those unused?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The new version of SASS throws a warning when setting a class that doesn't exist in the styles.module.scss file. And we had a few! In this PR i removed them 👍

Base automatically changed from ERA-11293-eject-CRA to ERA-11293 April 22, 2025 15:17
@luixlive
Copy link
Contributor Author

@gaboDev

Left a question, also I'm seeing a 401 invalid_client error when trying to login into feature env

Weird 🤔 yeah I can't log either. Let me try re-deploying the backend.

@luixlive
Copy link
Contributor Author

@gaboDev I just re-deployed and still we can't log in. I guess there's an issue with the DB or something, it can't be related to the changes here since I'm trying to login directly from the admin and get the same error. What we can do is just do a code review in this one and jump stright to the next PR in the line and to the testing there. Anyway, if everything works fine there, we are good 👍

@gaboDev gaboDev self-requested a review April 22, 2025 18:09
Copy link
Contributor

@gaboDev gaboDev left a comment

Choose a reason for hiding this comment

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

LGTM 🫡

@luixlive luixlive merged commit 2953efd into ERA-11293 Apr 22, 2025
5 checks passed
@luixlive luixlive deleted the ERA-11293-update-ejected-dependencies branch April 22, 2025 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants