Skip to content
This repository was archived by the owner on May 11, 2022. It is now read-only.

Conversation

@bfitzpat
Copy link
Collaborator

@bfitzpat bfitzpat commented Jul 12, 2021

Spun this change out of #551 (the OpenShift Quick Start PoC)

For additional details see https://issues.redhat.com/browse/FUSETOOLS2-1203

@bfitzpat
Copy link
Collaborator Author

Moving to an environment variable approach, we should be able to do something like:

     env:
     - name: didact.append.registry
       value: "[{"name":"AppendMe2","category":"AppendedCat2","sourceUri":"https%3A%2F%2Fraw.githubusercontent.com%2Fredhat-developer%2Fvscode-didact%2Fmaster%2Fexamples%2Fregistry.example.didact.md"}]"

@bfitzpat
Copy link
Collaborator Author

Turned out we had to move the environment variable declaration to the cheEditor, but that was the trick! See https://issues.redhat.com/browse/FUSETOOLS2-1203?focusedCommentId=16447082&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16447082 for details

@bfitzpat bfitzpat marked this pull request as ready for review July 20, 2021 17:58
@bfitzpat bfitzpat requested a review from apupier July 20, 2021 17:58
@bfitzpat bfitzpat changed the title Fusetools2 1203 adding tuts thru preference Fusetools2 1203 adding tuts thru ENV variable Jul 20, 2021
@bfitzpat bfitzpat force-pushed the FUSETOOLS2-1203-adding-tuts-thru-preference branch from d4f2c35 to f74cb1c Compare July 20, 2021 18:20
await registerEmbeddedTutorials(context, 'Writing Your First Didact Tutorial', './demos/markdown/tutorial/tutorial.didact.md');
}

// append any additional tutorials if we have them
Copy link
Member

Choose a reason for hiding this comment

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

the comment is only repeating the name of the method. it does not provide more information. It can be removed to simplify teh code and ease maintenance

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Though you and I disagree on this point, I feel that comments do not clutter the code in this instance and will leave the comment as is. Thank you.

bfitzpat added 4 commits July 21, 2021 07:42
Signed-off-by: Brian Fitzpatrick <[email protected]>
- add test
- update to use environment variable
- adjusting env variable name
- fix test
- cleanup

Signed-off-by: Brian Fitzpatrick <[email protected]>
Signed-off-by: Brian Fitzpatrick <[email protected]>
Signed-off-by: Brian Fitzpatrick <[email protected]>
@bfitzpat bfitzpat force-pushed the FUSETOOLS2-1203-adding-tuts-thru-preference branch from 666aa15 to fe587d7 Compare July 21, 2021 13:48
@bfitzpat bfitzpat requested a review from apupier July 21, 2021 13:49
@bfitzpat
Copy link
Collaborator Author

Addressed your code feedback @apupier. Thank you.

@bfitzpat bfitzpat merged commit ba4b8f1 into redhat-developer:master Jul 21, 2021
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.

2 participants