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

feat: record environment id in service resource. #1099

Merged
merged 3 commits into from
Aug 16, 2023
Merged

feat: record environment id in service resource. #1099

merged 3 commits into from
Aug 16, 2023

Conversation

thxCode
Copy link
Member

@thxCode thxCode commented Aug 16, 2023

IMPORTANT: Please do not create a Pull Request without creating an issue first.

Problem:

Failed to operate(log/exec) the vertex from the environment graph(multiple services), as there is no field to represent the owned service of a service resource from the response payload.

Solution:

  • Record environement_id into ServiceResource, like what we did to ServiceRevision, redunt, but efficient. @hibig @Finenyaco , need to rebuild the database.
  • Place the projectID, environmentID and serviceID to the vertex extensions field from the graph response payload. @hibig

Related Issue:

Signed-off-by: thxCode <[email protected]>
- return the related ids of a service and service resource in the graph
  apis

Signed-off-by: thxCode <[email protected]>
@thxCode thxCode requested review from alexcodelf, gitlawr and aiwantaozi and removed request for alexcodelf and gitlawr August 16, 2023 03:58
Copy link
Contributor

@gitlawr gitlawr 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

@alexcodelf alexcodelf left a comment

Choose a reason for hiding this comment

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

LGTM

@alexcodelf alexcodelf merged commit 00fc7f0 into seal-io:main Aug 16, 2023
3 checks passed
@thxCode thxCode deleted the graph branch August 18, 2023 08:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants