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

Update Project id format to UUID #297

Merged

Conversation

masayag
Copy link
Collaborator

@masayag masayag commented May 2, 2023

What this PR does / why we need it:
The project ID format is UUID. However, in response, it was defined as a string.
This PR matches the expectations for the format of the project ID by specifying its format to be UUID.

Which issue(s) this PR fixes *:
Partially Fixes #FLPATH-333

Change type

  • New feature
  • Bug fix
  • Unit tests
  • Integration tests
  • CI
  • Documentation
  • Auto generated SDK code

Impacted services

  • Workflow Service
  • Notifivcation Service

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.

@openshift-ci openshift-ci bot requested review from gciavarrini and ydayagi May 2, 2023 13:49
@nirarg
Copy link
Contributor

nirarg commented May 3, 2023

/lgtm

Signed-off-by: Moti Asayag <masayag@redhat.com>
@openshift-ci openshift-ci bot removed the lgtm label May 3, 2023
@@ -167,7 +167,7 @@ public static ProjectResponseDTO getProjectByNameAndDescription(List<ProjectResp
String projectName, String projectDescription) {
return projects.stream()
.filter(prj -> projectName.equals(prj.getName()) && projectDescription.equals(prj.getDescription())
&& prj.getUsername() == null && !Strings.isNullOrEmpty(prj.getId()))
&& prj.getUsername() == null && prj.getId() == null)
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure if it's ok. prj.getId shouldn't be null, no?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch. Should be the reverse condition.

Signed-off-by: Moti Asayag <masayag@redhat.com>
@gciavarrini
Copy link
Contributor

/lgtm

@nirarg
Copy link
Contributor

nirarg commented May 3, 2023

/approve

@openshift-ci
Copy link

openshift-ci bot commented May 3, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nirarg

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

@openshift-ci openshift-ci bot added the approved label May 3, 2023
@openshift-merge-robot openshift-merge-robot merged commit f636f13 into parodos-dev:main May 3, 2023
@masayag masayag deleted the project_id_uuid_format branch May 7, 2023 14:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants