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

reconciler: allow custom comparison function #4726

Merged
merged 1 commit into from Nov 9, 2023

Conversation

wasaga
Copy link
Contributor

@wasaga wasaga commented Nov 8, 2023

Summary

it's not enough to compare records using proto.Equal, we sometimes need ignore fields such as version, accessed_at, updated_at as they would never be in sync between core and observer.

Related issues

User Explanation

Checklist

  • reference any related issues
  • updated docs
  • updated unit tests
  • updated UPGRADING.md
  • add appropriate tag (improvement / bug / etc)
  • ready for review

@wasaga wasaga requested a review from a team as a code owner November 8, 2023 22:04
@wasaga wasaga added backport 0-10-0 Backport to 0-10-0 release branch backport 0-24-0 labels Nov 8, 2023
@coveralls
Copy link

Coverage Status

coverage: 63.662% (+0.007%) from 63.655%
when pulling 469184d on wasaga/changeset-custom-fn
into 62a9299 on main.

@calebdoxsey calebdoxsey removed the backport 0-10-0 Backport to 0-10-0 release branch label Nov 8, 2023
@wasaga wasaga merged commit cc6592b into main Nov 9, 2023
11 checks passed
@wasaga wasaga deleted the wasaga/changeset-custom-fn branch November 9, 2023 01:11
wasaga added a commit that referenced this pull request Nov 9, 2023
reconciler: allow custom comparison function (#4726)

Co-authored-by: Denis Mishin <dmishin@pomerium.com>
wasaga added a commit that referenced this pull request Nov 9, 2023
* authorize: build evaluators cache in parallel

* session: add unit tests for gRPC wrapper methods (#4713)

* core/config: add support for maps in environments (#4717)

* reconciler: allow custom comparison function (#4726)

* add loopvar alias

---------

Co-authored-by: Kenneth Jenkins <51246568+kenjenkins@users.noreply.github.com>
Co-authored-by: Caleb Doxsey <cdoxsey@pomerium.com>
backport-actions-token bot pushed a commit that referenced this pull request Nov 9, 2023
* authorize: build evaluators cache in parallel

* session: add unit tests for gRPC wrapper methods (#4713)

* core/config: add support for maps in environments (#4717)

* reconciler: allow custom comparison function (#4726)

* add loopvar alias

---------

Co-authored-by: Kenneth Jenkins <51246568+kenjenkins@users.noreply.github.com>
Co-authored-by: Caleb Doxsey <cdoxsey@pomerium.com>
wasaga added a commit that referenced this pull request Nov 9, 2023
authorize: build evaluators cache in parallel (#4722)

* authorize: build evaluators cache in parallel

* session: add unit tests for gRPC wrapper methods (#4713)

* core/config: add support for maps in environments (#4717)

* reconciler: allow custom comparison function (#4726)

* add loopvar alias

---------

Co-authored-by: Denis Mishin <dmishin@pomerium.com>
Co-authored-by: Kenneth Jenkins <51246568+kenjenkins@users.noreply.github.com>
Co-authored-by: Caleb Doxsey <cdoxsey@pomerium.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants