Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Expose the region of a System Instance in UCL Discovery Service #3785

Merged
merged 7 commits into from
Apr 16, 2024

Conversation

la4ezar
Copy link
Contributor

@la4ezar la4ezar commented Apr 3, 2024

Description
We want the Discovery Service consumers to see the region of a system instance so that they can uniquely identify it based on its namespace (applicationNamespace), region (deploymentRegion), and localId (applicationTenantId).

Changes proposed in this pull request:

  • Add region in the tenants_apps view

Related issue(s)

Pull Request status

  • Implementation
  • Unit tests
  • Integration tests
  • chart/compass/values.yaml is updated
  • Mocks are regenerated, using the automated script

@la4ezar la4ezar requested review from a team as code owners April 3, 2024 12:11
@kyma-bot kyma-bot added cla: yes Indicates the PR's author has signed the CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Apr 3, 2024
@la4ezar la4ezar requested a review from a team as a code owner April 3, 2024 12:12
@la4ezar
Copy link
Contributor Author

la4ezar commented Apr 3, 2024

/retest

@la4ezar la4ezar added 👋 request review Review required 🦖 team-raptor Team Raptor Label labels Apr 12, 2024
@@ -0,0 +1,65 @@
BEGIN;
Copy link
Contributor

Choose a reason for hiding this comment

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

Rename both migrations because new ones with bigger timestamp were merged in main.

COALESCE(labels_app.value, labels_tmpl.value) AS region,
apps.local_tenant_id,
tmpl.name AS product_type,
formation_details.formation_id, -- this may seem as a duplicate of 't_apps.formation_id' but is not, because 't_apps.formation_id' can have default value but 'formation_details.formation_id' will always have the 'real' formation id
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you delete all comments in both migrations because they were added in a previous PR and the whole context of the comments is related to that PR. If we keep them in every future migration where tenants_apps is changed, I think it will just make the view/migration more difficult to read.

@nyordanoff
Copy link
Contributor

reminder: apply the respective down migration on prod-copy db and delete your test tenants_apps view

@la4ezar
Copy link
Contributor Author

la4ezar commented Apr 15, 2024

/test pre-main-compass-integration-no-dump

1 similar comment
@la4ezar
Copy link
Contributor Author

la4ezar commented Apr 15, 2024

/test pre-main-compass-integration-no-dump

@kyma-bot
Copy link

kyma-bot commented Apr 15, 2024

@la4ezar: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pre-main-compass-gke-benchmark 88f4864 link false /test pre-main-compass-gke-benchmark

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@la4ezar
Copy link
Contributor Author

la4ezar commented Apr 16, 2024

/test pre-main-compass-schema-migrator-validate

@kyma-bot kyma-bot added the lgtm Looks good to me! label Apr 16, 2024
@kyma-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nyordanoff

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

@kyma-bot kyma-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 16, 2024
@kyma-bot kyma-bot merged commit 7884fe9 into main Apr 16, 2024
7 of 8 checks passed
@la4ezar la4ezar deleted the expose-region-of-apps-in-ord branch April 16, 2024 11:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Looks good to me! size/L Denotes a PR that changes 100-499 lines, ignoring generated files. 🦖 team-raptor Team Raptor Label 👋 request review Review required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants