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: reconcile event #402

Merged
merged 3 commits into from
Jun 13, 2023
Merged

refactor: reconcile event #402

merged 3 commits into from
Jun 13, 2023

Conversation

chrisgacsal
Copy link
Contributor

Description

  • extend ReconcileEvent interface with Hash function returning string type which does implement the comparable interface required by map for types used as keys.
  • change common.Queue to rely on the ReconcileEvent type instead of comparable to provide more flexibility on how the items pushed to the queue are compared to eachother avoiding duplicated items on the queue.
  • add logging of the items being pushed to the queue or popped from the queue for reconciling.

Type of Change

[ ] Bug Fix
[ ] New Feature
[ ] Breaking Change
[x] Refactor
[ ] Documentation
[ ] Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

@chrisgacsal chrisgacsal requested a review from a team as a code owner June 12, 2023 19:43
@chrisgacsal chrisgacsal self-assigned this Jun 12, 2023
@chrisgacsal chrisgacsal added the enhancement New feature or request label Jun 12, 2023
@chrisgacsal chrisgacsal requested review from FrimIdan and a user June 13, 2023 07:27
ghost
ghost previously approved these changes Jun 13, 2023
* extend `ReconcileEvent` interface with `Hash` function returning
  `string` type which does implement the `comparable` interface required
  by `map` for types used as keys.
* change `common.Queue` to rely on the `ReconcileEvent` type instead of
  `comparable` to provide more flexibility on how  the items pushed to
  the queue are compared to eachother avoiding duplicated items on the
  queue.
* add logging of items being pushed to the queue or popped
  from the queue for reconciling.
@chrisgacsal
Copy link
Contributor Author

Tested in E2E.

@chrisgacsal chrisgacsal added this pull request to the merge queue Jun 13, 2023
Merged via the queue into main with commit d594f99 Jun 13, 2023
5 checks passed
@chrisgacsal chrisgacsal deleted the refactor-reconcile-event branch June 13, 2023 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants