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

Refactor deprecated code #117

Open
derrabauke opened this issue Jan 26, 2023 · 5 comments
Open

Refactor deprecated code #117

derrabauke opened this issue Jan 26, 2023 · 5 comments
Assignees
Labels
frontend This issue or pull request is frontend related refactor This issue or pull request discusses refactoring

Comments

@derrabauke
Copy link
Contributor

derrabauke commented Jan 26, 2023

The following list of deprecations must be processed.

deprecation-workflow.js:

    { handler: "silence", matchId: "ember-global" },
    { handler: "silence", matchId: "ember.component.reopen" },
    { handler: "silence", matchId: "ember-metal.get-with-default" },
    { handler: "silence", matchId: "implicit-injections" },
    { handler: "silence", matchId: "ember-views.curly-components.jquery-element" },
    { handler: "silence", matchId: "deprecated-run-loop-and-computed-dot-access" },
    { handler: "silence", matchId: "ember-utils.try-invoke" },
    { handler: "silence", matchId: "this-property-fallback" },
    { handler: "silence", matchId: "autotracking.mutation-after-consumption" },
    { handler: "silence", matchId: "manager-capabilities.modifiers-3-13" },
    { handler: "silence", matchId: "setting-on-hash" },
    { handler: "silence", matchId: "routing.transition-methods" },

How to:

Run ember test -s and delete a line from deprecation-workflow.js and fix the error's that occur. When finished with one delete the next line and so on.


PRs

adfinis/timed-frontend#785

@MitanOmar
Copy link
Member

Fixed with PR adfinis/timed-frontend#893

@derrabauke
Copy link
Contributor Author

I think we are not done yet. ;)

@derrabauke derrabauke reopened this Jun 21, 2023
@c0rydoras c0rydoras transferred this issue from adfinis/timed-frontend May 13, 2024
@c0rydoras c0rydoras added frontend This issue or pull request is frontend related refactor This issue or pull request discusses refactoring labels May 13, 2024
@c0rydoras
Copy link
Collaborator

@derrabauke whats the current state of this?

@derrabauke
Copy link
Contributor Author

Seems like we have two open todos. But honestly didn't touch the codebase for a while.

/* eslint-disable no-undef */
window.deprecationWorkflow = window.deprecationWorkflow || {};
self.deprecationWorkflow.config = {
  workflow: [
    { handler: "silence", matchId: "ember-string.add-package" }, // https://deprecations.emberjs.com/id/ember-string-add-package
    { handler: "silence", matchId: "ensure-safe-component.string" }, // optimized-power-select
  ],
};

@c0rydoras
Copy link
Collaborator

AFAICT just one

Note! As of May 19, 2023 there is a bug in the implementation of the @ember/string deprecation. Adding @ember/string to your project may not be enough to silence the deprecation. You may silence the deprecation by using ember-cli-deprecation-workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend This issue or pull request is frontend related refactor This issue or pull request discusses refactoring
Projects
Status: 🏗 In progress
Development

No branches or pull requests

3 participants