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

Port 9402 port api search identifier #79

Merged
merged 13 commits into from
Sep 1, 2024

Conversation

talsabagport
Copy link
Contributor

Description

What - Add support for search identifier feature
Why - Allows you to update entity without knowing its identifier
How - Refactor the code to allow run initial sync independently, which then can be used to evaluate and keep the identifiers while running initial sync to Port. The identifiers needed for the delete stale entities process at the end of the initial resync.

Type of change

Please leave one option from the following and delete the rest:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Non-breaking change (fix of existing functionality that will not change current behavior)
  • Documentation (added/updated documentation)

Copy link
Contributor

@danielsinai danielsinai left a comment

Choose a reason for hiding this comment

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

Great work 🤩

pkg/port/entity/entity.go Show resolved Hide resolved
pkg/port/entity/entity.go Show resolved Hide resolved

func (f *fixture) assertObjectsHandled(objects []struct{ kind, name string }) {
assert.Eventually(f.t, func() bool {
integrationKinds, err := f.portClient.GetIntegrationKinds(f.controllersHandler.stateKey)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice :)

pkg/jq/parser.go Show resolved Hide resolved
pkg/jq/parser.go Show resolved Hide resolved
Copy link
Contributor

@omby8888 omby8888 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

Choose a reason for hiding this comment

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

add a test on search identifier

@talsabagport talsabagport merged commit 0f21490 into main Sep 1, 2024
3 checks passed
@talsabagport talsabagport deleted the PORT-9402-port-api-search-identifier branch September 1, 2024 08:37
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.

3 participants