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

B7161682765: Remove event as a function callback #154

Merged
merged 8 commits into from Mar 18, 2024

Conversation

josquindebaz
Copy link
Contributor

@josquindebaz josquindebaz commented Mar 7, 2024

@josquindebaz josquindebaz force-pushed the bugs/B7161682765_Remove_yaem_deprecated_code branch 2 times, most recently from d2a4297 to 68751ed Compare March 14, 2024 08:33
@josquindebaz josquindebaz force-pushed the bugs/B7161682765_Remove_yaem_deprecated_code branch 6 times, most recently from e252b36 to b26acc0 Compare March 15, 2024 14:57
@josquindebaz josquindebaz marked this pull request as ready for review March 15, 2024 14:57
Copy link
Member

@DamienCassou DamienCassou left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1, 2 of 2 files at r2, 1 of 2 files at r3.
Reviewable status: 1 of 3 files reviewed, 3 unresolved discussions (waiting on @josquindebaz and @ValentinaVasile)


src/event.js line 140 at r2 (raw file):

	 * @param binding {eventBinding} Binding
	 */
	that.off = function (binding) {

this removal doesn't seem related to the current commit


test/events.test.js line 154 at r1 (raw file):

	});

	it("Event Category keeps a list of events", () => {

these 2 tests are unrelated to this commit and still makes sense at this point I think. I would just replace the last 2 lines with

expect(anEvent.register).toBeTruthy();
expect(anotherEvent.register).toBeTruthy();

If you want to make the Git history completely atomic, this change in the test could go in a dedicated commit "Make some tests stop using deprecated code" or similar


test/events.test.js line 92 at r2 (raw file):

	});

	it("Un-Bind callback using unregister", () => {

this removal doesn't seem related

Copy link
Contributor Author

@josquindebaz josquindebaz left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 of 3 files reviewed, 4 unresolved discussions (waiting on @DamienCassou and @ValentinaVasile)

a discussion (no related file):
revised the commits to be less messy



src/event.js line 140 at r2 (raw file):

Previously, DamienCassou (Damien Cassou) wrote…

this removal doesn't seem related to the current commit

ok


test/events.test.js line 154 at r1 (raw file):

Previously, DamienCassou (Damien Cassou) wrote…

these 2 tests are unrelated to this commit and still makes sense at this point I think. I would just replace the last 2 lines with

expect(anEvent.register).toBeTruthy();
expect(anotherEvent.register).toBeTruthy();

If you want to make the Git history completely atomic, this change in the test could go in a dedicated commit "Make some tests stop using deprecated code" or similar

thanks


test/events.test.js line 92 at r2 (raw file):

Previously, DamienCassou (Damien Cassou) wrote…

this removal doesn't seem related

ok

@josquindebaz josquindebaz force-pushed the bugs/B7161682765_Remove_yaem_deprecated_code branch from b26acc0 to 7ca546f Compare March 15, 2024 16:06
Copy link
Member

@DamienCassou DamienCassou left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 3 files at r7, 2 of 2 files at r8, 2 of 2 files at r9, 2 of 2 files at r10, 2 of 2 files at r11, 2 of 2 files at r12, 2 of 2 files at r13, 2 of 2 files at r14, all commit messages.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @ValentinaVasile)

@josquindebaz josquindebaz merged commit 375c3fe into main Mar 18, 2024
1 of 2 checks passed
@josquindebaz josquindebaz deleted the bugs/B7161682765_Remove_yaem_deprecated_code branch March 18, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants