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

feat: Use new sdk instructions instead of hello READMEs #152

Merged

Conversation

k3llymariee
Copy link
Contributor

@k3llymariee k3llymariee commented Apr 9, 2024

Copies the instructions from the guided quickstart here as markdown files to render in the setup flow. Starting with just one SDK (python) to establish the pattern.

image


# Create a helper function for rendering messages.
def show_message(s):
print("*** {}".format(s))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did change the string formatting from what's shown in the quickstart because our rendering was trying/failing to find the %s values and instead was showing MISSING values

before:

print("*** %s" % s)

image

return errMsg{err: err}
}

return fetchedSDKInstructions{instructions: content}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

despite the name of the function we're still sending fetchedSDKInstructions message type - figured we can update either the message name or the function name when we stop fetching from the READMEs but this way we can still just handle this one message in the showSDKInstructionsModel.Update method.

Comment on lines +1 to +5
# Set up your application

If you want to skip ahead, the final code is available in our [GitHub repository](https://github.com/launchdarkly/hello-python).


Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think maybe when the instructions are all in we might want to pull this intro text out of the markdown file/viewport box

@k3llymariee k3llymariee marked this pull request as ready for review April 9, 2024 19:31
@k3llymariee k3llymariee merged commit 6826a5c into main Apr 9, 2024
2 checks passed
@k3llymariee k3llymariee deleted the kelly/sc-239433/use-new-sdk-instructions-instead-of-example branch April 9, 2024 20:35
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.

3 participants