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

docs: update parameters doc with allowable types #1792

Merged
merged 3 commits into from
Oct 11, 2021

Conversation

adnxn
Copy link
Contributor

@adnxn adnxn commented Oct 7, 2021

What does this change

If I understood #1114 correctly, this change improves visibility of parameter types on the main parameters documentation.

What issue does it fix

Closes #1114

Notes for the reviewer

n/a

Checklist

  • Unit Tests
  • Documentation
  • Schema (porter.yaml)

If this is your first pull request, please add your name to the bottom of our Contributors list. Thank you for making Porter better! 🙇‍♀️

@adnxn adnxn changed the title update parameters doc with allowable types docs: update parameters doc with allowable types Oct 7, 2021
@carolynvs
Copy link
Member

A preview of your change is located at https://deploy-preview-1792--porter.netlify.app/parameters/. You can find this link by expanding the "checks" section by clicking "show all checks" then click on the netlify preview.

Copy link
Member

@carolynvs carolynvs 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 the PR!

action is executed (install/upgrade/uninstall/invoke).
action is executed (install/upgrade/uninstall/invoke). Parameters are restricted
to a list of [allowable data
types](https://porter.sh/author-bundles/#parameters).
Copy link
Member

Choose a reason for hiding this comment

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

If you take a look at your preview page, you'll see that the link here goes directly to the main website, and isn't relative to the preview website. We like to use relative links so that as you click links on a preview of the website, or on a different version of the website, like https://release-v1.porter.sh, you stay on the same site and don't just to the live site.

If you change the link to /author-bundles/#parameters, that will fix the link.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed!

@@ -15,7 +15,9 @@ Parameter values are resolved from a combination of supplied parameter set
files, user-specified overrides and defaults defined by the bundle itself.
The resolved values are added to a claim receipt, which is passed in to
the bundle execution environment, e.g. the docker container, when the bundle
action is executed (install/upgrade/uninstall/invoke).
action is executed (install/upgrade/uninstall/invoke). Parameters are restricted
Copy link
Member

Choose a reason for hiding this comment

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

Let's move this sentence about allowed types right after the first sentence in the paragraph after "When you are authoring a bundle,...".

The first paragraph is discussing defining parameters, which is more relevant to the content that you just added.

Copy link
Contributor Author

@adnxn adnxn Oct 7, 2021

Choose a reason for hiding this comment

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

rearranged the wording. lmk if that sounds better

@carolynvs
Copy link
Member

Looking at this more, I think that what I originally suggested in the issue isn't enough. Sorry about that.

Below is what the user sees when they click on the new link. I don't expect most people to find the part that explains the available types easily.

What if we added one more change, this time to the page below, and add a heading named "Parameter Types" and then we repeated the list of allowed types, as a bulleted list.

Then we can modify the link from the other page to this one to go directly to that new heading. That should make it much easier to find the list of supported types.

screenshot

Browser metadata
Path:      /author-bundles/#parameters
Browser:   Firefox 93.0 on Mac OS 10.15
Viewport:  2078 x 1164 @1x
Language:  en-US
Cookies:   Enabled

Open in BrowserStack

Open Deploy Preview · Mark as Resolved

@adnxn
Copy link
Contributor Author

adnxn commented Oct 8, 2021

What if we added one more change, this time to the page below, and add a heading named "Parameter Types" and then we repeated the list of allowed types, as a bulleted list.

Then we can modify the link from the other page to this one to go directly to that new heading. That should make it much easier to find the list of supported types.

i agree, i think that's a better idea

Copy link
Member

@carolynvs carolynvs left a comment

Choose a reason for hiding this comment

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

Looks great, thanks! 💯

@carolynvs carolynvs merged commit 896577f into getporter:main Oct 11, 2021
carolynvs added a commit to carolynvs/porter that referenced this pull request Nov 23, 2021
* Fix Pushing Bundles that have a relocationMap (getporter#1815)
* chore: add avinashupadhya99 to Contributors.md
* docs: remove accidental packr word from contribution guide
* Improve error message when cnab-to-oci fixes up a bundle
* docs: fix command in contrib tutorial
* docs: update parameters doc with allowable types (getporter#1792)

Signed-off-by: Carolyn Van Slyck <[email protected]>
@carolynvs carolynvs mentioned this pull request Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve visibility of parameter types documentation
2 participants