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

Dx topic replay #53

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

Dx topic replay #53

wants to merge 16 commits into from

Conversation

yugen
Copy link
Collaborator

@yugen yugen commented Feb 22, 2024

Work required for replaying DX gpm-general-events with corrections.

Note that this PR is compared to L10 for ease of review.

@yugen yugen changed the base branch from main to L10 February 22, 2024 15:17
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added methods to ensure availability when publishing events.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This event doesn't use any methods from GroupMemberEvent AND does not publish a DX messages so I've changed it to inherit from GroupEvent.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure what's going on with this change-- it looks like the interface that is being implemented (PublishableApplicationEvent) is no longer used, but two other un-used imports are brought in... And why remove the getPublishableMessage part?

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK, maybe I understand that the publishable message gets pushed down to GenesAdded. Should this implement PublishableEvent instead of PublishableApplication event, then?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The idea was that the parent GeneEvent should not implement any methods related to publishing events since not all subclasses will necessarily be Publishable events. I made these changes before I realized GeneAddedApproved and GeneRemovedApproved were never actually used anywhere (and subsequently removed), but I still believe this is the right thing to do b/c GeneAdded and GeneRemoved actually require different implementations of getPublishableMessage. And we don't know whether future GeneEvent descendants will all be publishable.

So far all GeneEvents are PublishableApplicationEvents and should implement that interface.

I admit this is more byzantine than current TJ is particularly thrilled about.

@yugen yugen changed the base branch from L10 to main-updated March 17, 2024 14:29
Base automatically changed from main-updated to main April 7, 2024 17:29
@bpow
Copy link
Collaborator

bpow commented Apr 8, 2024

rebased (again) removing some duplicated commits, dropping the changes that were reverted later and moving them instead to the misc-little-fixes branch. Hopefully ready to merge soon before it needs to be rebased again...

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

2 participants