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

Improving the quick start documentation #52

Merged
merged 3 commits into from
Feb 10, 2020
Merged

Conversation

SdgJlbl
Copy link
Collaborator

@SdgJlbl SdgJlbl commented Dec 20, 2019

This is a first draft concerning the quick start guide in documentation.
I have some questions (as "comments") in the rst. I'm struggling a bit with the level of details we want to provide here (minimal I guess, but I'm not familiar enough with SQL migration to know how much is needed).

Comments welcome :)

Stuff remaining to do:

  • Fix the very quick start (main README)
  • Wait for bug fix github.com/Allow to initialize a database without schema file #54
  • Add all referenced 'docs/how-to` files (even if still empty) so that the documentation would build
  • Maybe create associated issues to fill in necessary how-to pages

Successful PR Checklist:

  • Tests
  • Documentation (optionally: run spell checking)
  • Had a good time contributing? (feel free to give some feedback)

@SdgJlbl SdgJlbl added the help wanted Extra attention is needed label Dec 20, 2019
@codecov
Copy link

codecov bot commented Dec 20, 2019

Codecov Report

Merging #52 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #52   +/-   ##
=======================================
  Coverage   56.35%   56.35%           
=======================================
  Files          14       14           
  Lines         598      598           
  Branches       81       81           
=======================================
  Hits          337      337           
  Misses        254      254           
  Partials        7        7
Flag Coverage Δ
#integration 12.37% <ø> (ø) ⬆️
#unit 55.18% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1e98054...e008a6a. Read the comment docs.

@@ -1,6 +1,68 @@
Quickstart
==========

Use *septentrion* as your migration tool in 2 easy steps:
1. Write your migrations.
2. Run your migrations.
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. Draw the rest of the owl :D

(note: I was the one writing this initially)

docs/quickstart.rst Outdated Show resolved Hide resolved
README.rst Outdated
│   ├── fixtures_0.1.sql
│   └── fixtures_1.0.sql
└── schemas
└── schema_0.1.sql
Copy link
Contributor

Choose a reason for hiding this comment

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

We could prune the tree a bit. I'm not sure it needs to be this long to understand.
(We could skip the fixtures too)

docs/quickstart.rst Outdated Show resolved Hide resolved
docs/quickstart.rst Outdated Show resolved Hide resolved
docs/quickstart.rst Outdated Show resolved Hide resolved
docs/quickstart.rst Outdated Show resolved Hide resolved
docs/quickstart.rst Outdated Show resolved Hide resolved
docs/quickstart.rst Outdated Show resolved Hide resolved
docs/quickstart.rst Outdated Show resolved Hide resolved
The final version you target is a required argument (it might change in the future).

# TODO : do we want to add something about dry-run here?

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we put a conclusion sentence here, summarizing what the user did (congratulations could be nice too)

@ewjoachim
Copy link
Contributor

ewjoachim commented Dec 21, 2019

Nicely done, a very successful start. Congratulations, @SdgJlbl !


- Either your environment variables `PGHOST`, `PGPORT` and `PGUSER` are properly set.
- Or you can set the environment variables `SEPTENTRION_HOST`, `SEPTENTRION_PORT`, `SEPTENTRION_USERNAME`.
- configuration file `septentrion.ini`
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like this bullet point is not done :)

Copy link
Contributor

Choose a reason for hiding this comment

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

WIP commit is WIP indeed :D


.. code-block:: console

[VERSION]-[MIGRATION]-[ORDER]-[TYPE].sql
Copy link
Contributor

Choose a reason for hiding this comment

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

An example would be great I think.

Copy link
Contributor

Choose a reason for hiding this comment

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

Same here. All of the "how-to" content has been put there hastily, but we'll get a better look at it later.

docs/quickstart.rst Outdated Show resolved Hide resolved
docs/quickstart.rst Show resolved Hide resolved
docs/quickstart.rst Show resolved Hide resolved

.. code-block:: console

$ septentrion --target-version 1.0 migrate
Copy link
Contributor

Choose a reason for hiding this comment

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

We currently can't run the first migration wthout a schema and a version. And the schema isn't visible in the show-migrations output :-(

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Related issue for discussion #54

Co-authored-by: samuelhamard <samuel.hamard@people-doc.com>
Copy link
Contributor

@ewjoachim ewjoachim left a comment

Choose a reason for hiding this comment

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

Looking sharp! It seems it will soon be out of WIP. Good luck for the next steps, and congrats already.

@SdgJlbl SdgJlbl changed the title [Draft] Improving the quick start documentation Improving the quick start documentation Feb 3, 2020
@ewjoachim ewjoachim merged commit 38fb514 into master Feb 10, 2020
@ewjoachim ewjoachim deleted the improve-quickstart branch March 6, 2020 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants