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

fix: improve listing #3333

Merged

Conversation

acpana
Copy link
Collaborator

@acpana acpana commented Dec 6, 2024

A few improvements for the listing resource

  • fix on update controller
  • improve mock for existing update fields
  • improve basic test suite w update.yaml
  • fix reference resolution for old style refs

Signed-off-by: Alex Pana <[email protected]>
@acpana acpana requested review from yuwenma and jingyih December 6, 2024 18:00
Copy link
Collaborator

@jingyih jingyih left a comment

Choose a reason for hiding this comment

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

/lgtm

Signed-off-by: Alex Pana <[email protected]>
@google-oss-prow google-oss-prow bot removed the lgtm label Dec 6, 2024
Copy link
Collaborator

@jingyih jingyih left a comment

Choose a reason for hiding this comment

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

/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label Dec 6, 2024
@acpana
Copy link
Collaborator Author

acpana commented Dec 10, 2024

cc @yuwenma these small changes make the alpha controller usable for this resource

return err
}
obj.Spec.Source.BigQueryDatasetSource.DatasetRef.External = id.String()
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't quite follow here. Could you elaborate a little bit more on why using the listing resource ID as its reference resource' external?

We would want to use the datasetRef.NormalizeExternal. I know the dataset is not fully migrated to direct yet, but the NormalizeExternal does not depend on which controller the resource uses.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

@acpana acpana Dec 11, 2024

Choose a reason for hiding this comment

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

the id on line 100 is the new "old" resolved dataset reference. We need to populate the .External so the mappers function right for this reference of the object.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ah, ok. Suggest renaming to datasetID in ln100 and tableID in line 108.

Signed-off-by: Alex Pana <[email protected]>
@google-oss-prow google-oss-prow bot removed the lgtm label Dec 11, 2024
Copy link
Collaborator

@yuwenma yuwenma left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jingyih, yuwenma

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot merged commit dee215a into GoogleCloudPlatform:master Dec 11, 2024
17 checks passed
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.

3 participants