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 complete devfiles to advanced guides #6388

Merged

Conversation

valaparthvi
Copy link
Contributor

@valaparthvi valaparthvi commented Dec 7, 2022

What type of PR is this:
/kind feature
/area documentation

What does this PR do / why we need it:
This PR adds complete Devfile to all the advanced guides.

Which issue(s) this PR fixes:

Fixes #6337

PR acceptance criteria:

  • Unit test

  • Integration test

  • Documentation

How to test changes / Special notes to the reviewer:
Nodejs, Go, Java, Dotnet

@openshift-ci openshift-ci bot added the kind/feature Categorizes issue as a feature request. For PRs, that means that the PR is the implementation label Dec 7, 2022
@netlify
Copy link

netlify bot commented Dec 7, 2022

Deploy Preview for odo-docusaurus-preview ready!

Name Link
🔨 Latest commit 368d6a3
🔍 Latest deploy log https://app.netlify.com/sites/odo-docusaurus-preview/deploys/63909a390be2c70009fe82ce
😎 Deploy Preview https://deploy-preview-6388--odo-docusaurus-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@openshift-ci openshift-ci bot added the area/documentation Issues or PRs related to documentation or the 'odo.dev' website label Dec 7, 2022
@openshift-ci openshift-ci bot requested review from feloy and rm3l December 7, 2022 13:50
@sonarcloud
Copy link

sonarcloud bot commented Dec 7, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.3% 0.3% Duplication

@odo-robot
Copy link

odo-robot bot commented Dec 7, 2022

NoCluster Tests on commit finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Dec 7, 2022

Unit Tests on commit finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Dec 7, 2022

Validate Tests on commit finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Dec 7, 2022

Windows Tests (OCP) on commit finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Dec 7, 2022

OpenShift Tests on commit finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Dec 7, 2022

Kubernetes Tests on commit finished successfully.
View logs: TXT HTML

Copy link
Member

@rm3l rm3l left a comment

Choose a reason for hiding this comment

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

LGTM. I agree there is a lot of repetitive data, but since the Devfiles are quite different, it might be hard to factorize, IMO. Not an expert with MDX / JSX stuff, but there might be some room for reusability. So I am not sure it would be worth spending time right now trying to optimize this.

However, this makes me think of 2 things:

  • Based on a recent discussion, maybe we could use each of those Devfiles as input in E2E tests, and import them as is in these docs. This way, we would be able to test them as well. And for line highlighting in the Docs, I can imagine some generic MDX Component accepting the path to the Devfile along with line numbers as input properties, so as to keep highlighting the relevant lines.
  • These Advanced Guides could be simplified further now that we support parsing multi-document YAML in a single K8s component (Add support for parsing multiple k8s definition in a single Devfile K8s component #6372)

But that's another story that can be handled in separate PRs.

@valaparthvi valaparthvi mentioned this pull request Dec 8, 2022
27 tasks
Copy link
Member

@rm3l rm3l left a comment

Choose a reason for hiding this comment

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

Thanks for linking to that other issue.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Dec 8, 2022
@openshift-merge-robot openshift-merge-robot merged commit ec59ad2 into redhat-developer:main Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Issues or PRs related to documentation or the 'odo.dev' website kind/feature Categorizes issue as a feature request. For PRs, that means that the PR is the implementation lgtm Indicates that a PR is ready to be merged. Required by Prow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Advanced Guides must show final Devfile at the end of Edit section
3 participants