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

Add dependentProjects field to devfile/DevWorkspace #1217

Merged
merged 2 commits into from
Oct 19, 2023

Conversation

amisevsk
Copy link
Contributor

@amisevsk amisevsk commented Aug 8, 2023

What does this PR do?

Adds field dependentProjects to the devfile API. For discussion on the purpose of this field, see #1082

Which issue(s) does this PR fix

Closes #1082

PR acceptance criteria

Testing and documentation do not need to be complete in order for this PR to be approved. We just need to ensure tracking issues are opened.

  • Open new test/doc issues under the devfile/api repo
  • Check each criteria if:
  • There is a separate tracking issue. Add the issue link under the criteria
    or
  • test/doc updates are made as part of this PR
  • If unchecked, explain why it's not needed

How to test changes / Special notes to the reviewer

@amisevsk amisevsk requested a review from l0rd August 28, 2023 17:21
@@ -42,6 +42,9 @@ func ValidateAndReplaceGlobalVariable(workspaceTemplateSpec *v1alpha2.DevWorkspa

// Validate the starter projects and replace for global variable
variableWarning.StarterProjects = ValidateAndReplaceForStarterProjects(workspaceTemplateSpec.Variables, workspaceTemplateSpec.StarterProjects)

// Validate the starter projects and replace for global variable
variableWarning.StarterProjects = ValidateAndReplaceForProjects(workspaceTemplateSpec.Variables, workspaceTemplateSpec.DependentProjects)
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be dependentProjects instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Woops! Yes, good catch. I've updated the PR (and the relevant test case to include dependentProjects)

Add field 'dependentProjects' to the devfile API. Dependent projects
are additional projects that are related to the 'main' project in a
Devfile, allowing a devfile to specify e.g. dependencies or related
projects that are useful in development.

Signed-off-by: Angel Misevski <[email protected]>
Copy link
Contributor

@yangcao77 yangcao77 left a comment

Choose a reason for hiding this comment

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

changes look good to me

@openshift-ci openshift-ci bot added the lgtm label Oct 19, 2023
@openshift-ci
Copy link

openshift-ci bot commented Oct 19, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: amisevsk, yangcao77

The full list of commands accepted by this bot can be found 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

@amisevsk amisevsk merged commit b4fea57 into devfile:main Oct 19, 2023
4 checks passed
@amisevsk amisevsk deleted the dependentProjects branch October 19, 2023 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dependent Projects
2 participants