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

Update migration guide. #22

Merged
merged 2 commits into from
Nov 26, 2020
Merged

Update migration guide. #22

merged 2 commits into from
Nov 26, 2020

Conversation

yhontyk
Copy link
Contributor

@yhontyk yhontyk commented Nov 18, 2020

Added description of v2 changes w/ links to respective issues and some language suggestions.

Docs issue: devfile/api#160

@yhontyk
Copy link
Contributor Author

yhontyk commented Nov 18, 2020

@elsony could you PTAL if everything is correct content-wise?
@jc-berger could you please provide a language review? ☺️

Thanks.


=== starterProjects and projects description
=== `starterProjects` and projects description
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any reason we have a different format for starterProjects vs projects given that both are elements within the devfile? If one is with ` then the other should also have it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! Added backticks around project.

@@ -75,35 +75,35 @@ components:

Details can be found in the https://github.com/che-incubator/devworkspace-api/issues/4[corresponding issue].
Copy link
Contributor

Choose a reason for hiding this comment

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

Change this URL to devfile/api#4

@@ -75,35 +75,35 @@ components:

Details can be found in the https://github.com/che-incubator/devworkspace-api/issues/4[corresponding issue].

=== Shared Volumes Across Components
=== Shared volumes across components

Details can be found in the https://github.com/che-incubator/devworkspace-api/issues/19[corresponding issue].
Copy link
Contributor

Choose a reason for hiding this comment

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

Change this URL to devfile/api#19


Details can be found in the https://github.com/devfile/api/issues/48[corresponding issue].

=== Replace Alias with Name
=== Replace alias with Name

Details can be found in the https://github.com/che-incubator/devworkspace-api/issues/9[corresponding issue].
Copy link
Contributor

Choose a reason for hiding this comment

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

Change URL to devfile/api#9
This comment applies to all other URLs that start with
https://github.com/che-incubator/devworkspace-api/issues
and the prefix should be changed to use the prefix
https://github.com/devfile/api/issues


Details can be found in the https://github.com/che-incubator/devworkspace-api/issues/9[corresponding issue].

=== Renaming dockerimage component type
=== Renaming `dockerimage` component type

Details can be found in the https://github.com/che-incubator/devworkspace-api/issues/8[corresponding issue].
Copy link
Contributor

Choose a reason for hiding this comment

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

Change URL prefix, see above.

@@ -175,27 +175,27 @@ components:

Details can be found in the https://github.com/che-incubator/devworkspace-api/issues/31[corresponding issue].
Copy link
Contributor

Choose a reason for hiding this comment

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

Change URL prefix, see above.


Details can be found in the https://github.com/devfile/api/issues/56[corresponding issue].

=== Environment Varibables for a Specific Command
=== Environment variables for a specific command

Details can be found in the https://github.com/che-incubator/devworkspace-api/issues/21[corresponding issue].
Copy link
Contributor

Choose a reason for hiding this comment

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

Change URL prefix, see above.


Details can be found in the https://github.com/che-incubator/devworkspace-api/issues/21[corresponding issue].

=== Renaming workdir into workingDir
=== Renaming `workdir` into `workingDir`

Details can be found in the https://github.com/che-incubator/devworkspace-api/issues/22[corresponding issue].
Copy link
Contributor

Choose a reason for hiding this comment

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

Change URL prefix, see above.


Details can be found in the https://github.com/che-incubator/devworkspace-api/issues/22[corresponding issue].

=== Id and label for Composite Commands
=== `Id` and `label` for composite commands

Details can be found in the https://github.com/che-incubator/devworkspace-api/issues/18[corresponding issue].
Copy link
Contributor

Choose a reason for hiding this comment

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

Change URL prefix, see above.

----
v2.0
---
- id: helloWorld
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be name instead of id

@yhontyk
Copy link
Contributor Author

yhontyk commented Nov 23, 2020

@elsony Thank you for the review! I've changed the URLs and addressed your other feedback. PTAL when you have time.

Copy link
Contributor

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

@rkratky rkratky left a comment

Choose a reason for hiding this comment

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

@boczkowska, adding a bunch of nitpicks.

docs/modules/ROOT/pages/migration_guide.adoc Outdated Show resolved Hide resolved
docs/modules/ROOT/pages/migration_guide.adoc Outdated Show resolved Hide resolved
@@ -73,37 +72,37 @@ components:
reference: https://.../mongo.yaml
----

Details can be found in the https://github.com/che-incubator/devworkspace-api/issues/4[corresponding issue].
Details can be found in the https://github.com/devfile/api/issues/4[corresponding issue].
Copy link

Choose a reason for hiding this comment

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

All of the "Details can be found in the >corresponding issue<." sentences would look better with:

  • No passive tense
  • Title of the linked issue

E.g.: "For more details, see >Polymorphic component type UX in a devfile<."

docs/modules/ROOT/pages/migration_guide.adoc Outdated Show resolved Hide resolved
docs/modules/ROOT/pages/migration_guide.adoc Outdated Show resolved Hide resolved
docs/modules/ROOT/pages/migration_guide.adoc Outdated Show resolved Hide resolved
@@ -1,9 +1,9 @@
= Devfile v2 Migration Guide
= Migrating from devfile v1 to devfile v2
Copy link

Choose a reason for hiding this comment

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

Unless there's a specific reason not to, I believe the use of v1 vs v1.0 and v2 vs v2.0 should be unified.

docs/modules/ROOT/pages/migration_guide.adoc Outdated Show resolved Hide resolved
docs/modules/ROOT/pages/migration_guide.adoc Outdated Show resolved Hide resolved
docs/modules/ROOT/pages/migration_guide.adoc Outdated Show resolved Hide resolved
Co-authored-by: Robert Krátký <rkratky@redhat.com>

Co-authored-by: Robert Krátký <rkratky@redhat.com>
@yhontyk
Copy link
Contributor Author

yhontyk commented Nov 24, 2020

@rkratky thanks! PTAL

Copy link

@rkratky rkratky left a comment

Choose a reason for hiding this comment

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

Thanks, @boczkowska.

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: boczkowska, elsony, rkratky
To complete the pull request process, please assign after the PR has been reviewed.
You can assign the PR to them by writing /assign in a comment when ready.

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

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.

4 participants