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

Harmonize Dispose Function Names #2165

Open
wants to merge 45 commits into
base: master
Choose a base branch
from

Conversation

jamesmyose
Copy link

@jamesmyose jamesmyose commented Aug 2, 2023

Description

  • Renamed delete function names to dispose

Motivation and Context

This is work on #1937. I found some delete functions that I could change, but I was unsure about changing anything else.
This PR should have the same code as #1938. Because the commit history was flawed, I rebased this branch based on the current master

jamesmyose and others added 30 commits November 7, 2022 11:15
…essages to old methods

refactor(api): rename delete methods to dispose

refactor(scheduler): rename cache.clear to dispose and cache.delete to remove

refactor: add console warning messages to old dispose methods in order to prevent breaking changes
…e.delete() to Cache.remove() and Layer.delete() to Layer.dispose()

BREAKING CHANGE: Cache.clear() has been renamed to Cache.dispose()
BREAKING CHANGE: Cache.delete() has been renamed to Cache.remove()
BREAKING CHANGE: Layer.delete() has been renamed to Layer.dispose()
…e.delete() to Cache.remove() and Layer.delete() to Layer.dispose()

BREAKING CHANGE: Cache.clear() has been renamed to Cache.dispose()
BREAKING CHANGE: Cache.delete() has been renamed to Cache.remove()
BREAKING CHANGE: Layer.delete() has been renamed to Layer.dispose()
…e.delete() to Cache.remove() and Layer.delete() to Layer.dispose()

BREAKING CHANGE: Cache.clear() has been renamed to Cache.dispose()
BREAKING CHANGE: Cache.delete() has been renamed to Cache.remove()
BREAKING CHANGE: Layer.delete() has been renamed to Layer.dispose()
…e.delete() to Cache.remove() and Layer.delete() to Layer.dispose()

BREAKING CHANGE: Cache.clear() has been renamed to Cache.dispose()
BREAKING CHANGE: Cache.delete() has been renamed to Cache.remove()
BREAKING CHANGE: Layer.delete() has been renamed to Layer.dispose()
…essages to old methods

refactor(api): rename delete methods to dispose

refactor(scheduler): rename cache.clear to dispose and cache.delete to remove

refactor: add console warning messages to old dispose methods in order to prevent breaking changes
@jamesmyose jamesmyose changed the title Harmonize dispose names third backup Harmonize Dispose Function Names Rebased Aug 2, 2023
@jamesmyose jamesmyose changed the title Harmonize Dispose Function Names Rebased Harmonize Dispose Function Names Aug 2, 2023
@jamesmyose
Copy link
Author

jamesmyose commented Aug 2, 2023

@ftoromanoff Hey, so I was able to get a rebase working, It looks like it did rebase successfully, but the commits still show the original PR's commits and the new ones on top. I also can't guarantee that all the changes were transferred correctly. I do have a backup branch so I try it again if necessary. Alternatively, though obviously I don't prefer this, I can create a new branch and manually make all the changes into a new commit.

@jamesmyose jamesmyose marked this pull request as ready for review August 2, 2023 00:24
@ftoromanoff
Copy link
Contributor

Hello and than you !
Next step will now be to sqaush all (or almost all) commits to be able to have only few commits with clear modifications. Cause 40 commits is really a lot.
Squashing commits means fusing them together and for that, when you do a rebase -i origin/master you can use "s" to sqaush one specifique commit with the previous one.

mgermerie and others added 5 commits August 2, 2023 18:20
author James Myose <jmyose@live.com> 1675463912 -0600
committer James Myose <jmyose@live.com> 1691295911 -0500

parent 9370312
author James Myose <jmyose@live.com> 1675463912 -0600
committer James Myose <jmyose@live.com> 1691295549 -0500

refactor(Cache, Layer): Rename Cache.clear() to Cache.dispose(), Cache.delete() to Cache.remove() and Layer.delete() to Layer.dispose()

BREAKING CHANGE: Cache.clear() has been renamed to Cache.dispose()
BREAKING CHANGE: Cache.delete() has been renamed to Cache.remove()
BREAKING CHANGE: Layer.delete() has been renamed to Layer.dispose()

refactor(Cache, Layer): Rename Cache.clear() to Cache.dispose(), Cache.delete() to Cache.remove() and Layer.delete() to Layer.dispose()

BREAKING CHANGE: Cache.clear() has been renamed to Cache.dispose()
BREAKING CHANGE: Cache.delete() has been renamed to Cache.remove()
BREAKING CHANGE: Layer.delete() has been renamed to Layer.dispose()

refactor(api, scheduler): rename delete methods and add deprecation messages to old methods

refactor(api): rename delete methods to dispose

refactor(scheduler): rename cache.clear to dispose and cache.delete to remove

refactor: add console warning messages to old dispose methods in order to prevent breaking changes

refactor: remove deprecated function comments and remove delete functions in classes that extend layer

refactor: add console warning messages to old dispose methods in order to prevent breaking changes

refactor: remove deprecated function comments and remove delete functions in classes that extend layer

refactor: clear cache in layer.dispose and correctly clear cache in other layer dispose methods

refactor: remove this.cache.dispose calls in other layers because layer has it in it's own dispose method

chore: fixing console.warn typos

fix(Layer): call the correct dispose method when the layer is disposed

fix: remove if checks for clearCache in each Layer dispose methods because the parent does it

fix: make the layer dispose methods call super.dispose with the clearCache parameter included

chore: update CONTRIBUTORS.md and try to prevent merge conflicts

refactor(Cache, Layer): Rename Cache.clear() to Cache.dispose(), Cache.delete() to Cache.remove() and Layer.delete() to Layer.dispose()

BREAKING CHANGE: Cache.clear() has been renamed to Cache.dispose()
BREAKING CHANGE: Cache.delete() has been renamed to Cache.remove()
BREAKING CHANGE: Layer.delete() has been renamed to Layer.dispose()

refactor(api, scheduler): rename delete methods and add deprecation messages to old methods

refactor(api): rename delete methods to dispose

refactor(scheduler): rename cache.clear to dispose and cache.delete to remove

refactor: add console warning messages to old dispose methods in order to prevent breaking changes

refactor: remove deprecated function comments and remove delete functions in classes that extend layer

refactor(api): rename delete methods to dispose

refactor: add console warning messages to old dispose methods in order to prevent breaking changes

refactor: remove deprecated function comments and remove delete functions in classes that extend layer

refactor: clear cache in layer.dispose and correctly clear cache in other layer dispose methods

refactor: remove this.cache.dispose calls in other layers because layer has it in it's own dispose method

chore: fixing console.warn typos

fix(Layer): call the correct dispose method when the layer is disposed

fix: make the layer dispose methods call super.dispose with the clearCache parameter included

chore: update CONTRIBUTORS.md and try to prevent merge conflicts
@jamesmyose
Copy link
Author

@ftoromanoff Hey, so I merged the most recent changes into my master branch and then I ran git rebase -i origin/master. I squashed all the commits into one and I ran through the rebase. I'm noticing that there are still 45 commits in this pull request though.

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.

None yet

3 participants