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 quickstart guide for usability #13562

Merged
merged 4 commits into from
May 28, 2024
Merged

Conversation

mitchnielsen
Copy link
Contributor

@mitchnielsen mitchnielsen commented May 24, 2024

Adds a few changes to the quickstart guide for usability
based on my experience running through it for the first time.

I put each change in a separate commit with a commit message for
explanation, and so we can revert/adjust any of them as needed.

I put some other notes in a comment below.

Example

I tried to serve the docs locally, but got some errors:

ERROR   -  mkdocstrings: prefect.cli.kubernetes could not be found
ERROR   -  Error reading page 'api-ref/prefect/cli/kubernetes.md':
ERROR   -  Could not collect 'prefect.cli.kubernetes'

Aborted with a BuildError!
Cleaning up...

For now, I'll just link to the markdown file on the branch:

https://github.com/PrefectHQ/prefect/blob/update-quickstart-guide/docs/getting-started/quickstart.md

Checklist

  • This pull request references any related issue by including "closes <link to issue>"
  • If this pull request adds new functionality, it includes unit tests that cover the changes
  • This pull request includes a label categorizing the change e.g. maintenance, fix, feature, enhancement, docs.

For documentation changes:

  • This pull request includes redirect settings in netlify.toml for files that are removed or renamed.

Specifies the title for the first script
to align with the title from the second version
of it later in the document.
The first iteration of the script varied a bit from the
second iteration, but the highlighted lines in the second
iteration suggested only two lines had changed. This isn't quite
true - for example, the function signature of 'get_repo_info' changed
to include two new arguments.

When following along with the quickstart, this makes it look like a
"patch", but after applying the same changes to my code, I obviously
got a different result.

This change aligns the first version with the second. A drawback is this
makes this initial script longer, but:

- It's still not a very long script anyway.
- The "copy" button is still there, which I suspect most people use
anyway.
- Those following along can now actually just change 4 lines now and get
the new result.
I didn't see a "Remove" button. I suspect this has changed,
so I updated the instructions to toggle the button that disables the
schedule.
@mitchnielsen
Copy link
Contributor Author

I noticed a couple smaller things I'll list below. I can open separate issue(s) for these if these look relevant.

  1. Running the flow gave me a link to view it in the UI. Having the same result after running prefect work-pool create would be handy too.

  2. Extra spacing after running? (could just by my shell environment but it stuck out to me)

$ prefect work-pool create mitch-managed-pool --type prefect:managed
Created work pool 'mitch-managed-pool'!



$ 
  1. The run was scheduled for 2024/05/24 08:00:00 PM, which doesn't align with the tutorial's 1am every day. I suspect this is related to my timezone, which makes sense, but the UI actually shows both:
image

@mitchnielsen mitchnielsen changed the title Update and adjust quickstart guide for usability Update quickstart guide for usability May 24, 2024
@mitchnielsen mitchnielsen marked this pull request as ready for review May 24, 2024 20:52
@mitchnielsen mitchnielsen requested a review from a team as a code owner May 24, 2024 20:52
@mitchnielsen mitchnielsen self-assigned this May 24, 2024
Copy link
Contributor

@billpalombi billpalombi left a comment

Choose a reason for hiding this comment

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

This is better for sure! We should remove that improve from the first script though.

docs/getting-started/quickstart.md Outdated Show resolved Hide resolved
The first script doesn't need the prefect
package imports (just a copy/pasta error).

Co-authored-by: Bill Palombi <bill@prefect.io>
Copy link
Contributor

@billpalombi billpalombi 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
Contributor

@zzstoatzz zzstoatzz left a comment

Choose a reason for hiding this comment

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

🌟

@mitchnielsen mitchnielsen merged commit ab7d48d into main May 28, 2024
4 checks passed
@mitchnielsen mitchnielsen deleted the update-quickstart-guide branch May 28, 2024 15:11
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.

None yet

3 participants