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

Reorganize and revise "Getting Started" docs #990

Merged
merged 7 commits into from
Aug 14, 2023

Conversation

josh-wong
Copy link
Member

Description

This PR reorganizes and revises the instructions in the Getting Started docs. Within a single page, users can read how to get started with ScalarDB by selecting their database, which are shown as tabs on the docs site.

Related issues and/or PRs

N/A

Changes made

I copied the contents from the individual Getting Started with [Database] docs and added the contents as tabs to a single page. Since those individual docs are no longer with this single doc, I deleted those pages.

Note

I will add a redirect on the ScalarDB Enterprise and Community docs sites so that users are redirected from any old pages to this all-in-one Getting Started with ScalarDB doc.

I also revised the content and added notices to highlight certain sentences for users.

Testing done

I ran our docs site locally and confirmed that the all-in-one Getting Started with ScalarDB page appeared as expected. For example, the following screenshot shows Cosmos DB for NoSQL selected as the database and a note.

getting-started-with-scalardb-tabs-notice-example

Checklist

  • I have commented my code, particularly in hard-to-understand areas.
  • The documentation has been updated to reflect the changes.
  • Any remaining open issues linked to this PR are documented and up-to-date (Jira, GitHub, etc.).
  • Tests (unit, integration, etc.) have been added for the changes.
  • My changes generate no new warnings.
  • Any dependent changes in other PRs have been merged and published.

Additional notes (optional)

None.

Remove the file since the contents have been added to `docs/getting-started-with-scalardb.md`
@josh-wong josh-wong self-assigned this Aug 7, 2023
Comment on lines +241 to +243
## Reference

To see the source code for the electronic money application used in this tutorial, see [`ElectronicMoney.java`](./getting-started/src/main/java/sample/ElectronicMoney.java).
Copy link
Member Author

Choose a reason for hiding this comment

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

In the original document, we showed the source code of ElectronicMoney.java. However, the code shown in the doc was different than the code in the .java file.

To avoid needing to update the source code for ElectronicMoney.java twice (in the source code and in the doc), I've simply added a link to the source code as a reference.

Now we can run the application.

- Charge `1000` to `user1`:
- Credit **1000** to **customer1** by running the following command:
Copy link
Member Author

Choose a reason for hiding this comment

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

I changed user1 to customer1 because a customer-merchant relationship is common in commerce.


For a list of databases that ScalarDB supports, see [Supported Databases](scalardb-supported-databases.md).

<div id="tabset-1">
Copy link
Member Author

@josh-wong josh-wong Aug 7, 2023

Choose a reason for hiding this comment

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

This <div> begins the tabbed content for the four databases.

scalar.db.password=<PASSWORD>
```
</div>
</div>
Copy link
Member Author

Choose a reason for hiding this comment

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

This </div> ends the tabbed content for the four databases.

Comment on lines +5 to +11
{% capture notice--warning %}
**Warning**

This electronic money application is simplified for this tutorial and isn't suitable for a production environment.
{% endcapture %}

<div class="notice--warning">{{ notice--warning | markdownify }}</div>
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a notice/warning for users. I've added other notices to this document as well, which follow the same syntax.

To see what a notice looks like, please see PR #990 (comment).

@josh-wong josh-wong marked this pull request as ready for review August 7, 2023 02:58
Copy link

@choplin choplin left a comment

Choose a reason for hiding this comment

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

The changes look good to me! BTW, this is not directly related to this PR, I feel the title of "Getting Started" is too general for the actual contents. Would "Configure ScalarDB for various databases" or like that be more suitable?

Copy link
Contributor

@komamitsu komamitsu 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

@Torch3333 Torch3333 left a comment

Choose a reason for hiding this comment

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

LGTM, thank you.

Copy link
Collaborator

@brfrn169 brfrn169 left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

@josh-wong To which branches would you like to apply the changes?

docs/getting-started-with-scalardb.md Show resolved Hide resolved
@josh-wong
Copy link
Member Author

The changes look good to me! BTW, this is not directly related to this PR, I feel the title of "Getting Started" is too general for the actual contents. Would "Configure ScalarDB for various databases" or like that be more suitable?

@choplin True!

We currently have an index page (titled "Setting Up Your Database Environment" in the side navigation) that points to individual pages for configuring the four databases. Since that index page and the individual four pages are in one doc (as of this PR), I agree that "Configure ScalarDB for Your Database" would be better.

I've updated the title of the doc in this PR.

@josh-wong
Copy link
Member Author

josh-wong commented Aug 9, 2023

LGTM! Thank you!

@josh-wong To which branches would you like to apply the changes?

@brfrn169 I'd like these changes to apply to the master branch and branches 3.10 to 3.5.🙏

Rename `getting-started-with-scalardb.md` to `configuring-scalardb-for-your-database.md` to match the title of the document.
Rename `configuring-scalardb-for-your-database.md` to `configure-scalardb-for-your-database.md`.
@@ -0,0 +1,243 @@
# Configure ScalarDB for Your Database
Copy link
Collaborator

Choose a reason for hiding this comment

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

@josh-wong @choplin I'm not sure this title is appropriate.

The goal of this document is to provide introductory steps for new users to get started with ScalarDB, but I don't think the goal is to explain how to configure ScalarDB. We already have a separate document addressing that. So I think the title Getting Started with ScalarDB is more appropriate. What do you think?

Copy link
Member Author

Choose a reason for hiding this comment

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

@brfrn169 I see your point. Since we have another document that describes how to configure a database in detail, I'm OK with changing the title of this document back to "Getting Started with ScalarDB."

In addition, we also have other "Getting Started" docs for features in ScalarDB that are similar to this one. If we decide a different title is more suitable later, we can always change it.

Copy link
Contributor

Choose a reason for hiding this comment

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

I also think Getting Started with ScalarDB is more appropriate. Let's change it!

we also have other "Getting Started" docs
Which ones?
Maybe, we need to rename them appropriately.

Copy link
Member Author

Choose a reason for hiding this comment

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

@feeblefakie Sorry, let me clarify. The other docs I was referring to already have "Getting Started ..." in their titles (for example, Getting Started with ScalarDB Analytics with PostgreSQL).

In the future, if we decide to not use "Getting Started" for this "Getting Started with ScalarDB" doc, we should keep in mind our other docs that have "Getting Started" in the title (like the one above) so that we can maintain consistency.

Copy link

@choplin choplin Aug 10, 2023

Choose a reason for hiding this comment

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

@brfrn169 @feeblefakie IMO, from the "Getting Started" page, we would expect a more comprehensive step-by-step explanation of how to start using the software, from downloading, and configuration to getting an initial result, which is to query the database in our case. I said "too general" because this page only contains the configuration part of the process to start using ScalarDB.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link

@choplin choplin Aug 14, 2023

Choose a reason for hiding this comment

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

@brfrn169 Ah, sorry that I misunderstood what page we are talking about. I said "too general" for the pages mentioned in the description of this PR, like https://scalardb.scalar-labs.com/docs/latest/getting-started-with-scalardb-on-cassandra/.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@choplin Understood. So let's keep this page title with Getting Started with ScalarDB. Thank you!

@brfrn169 brfrn169 self-requested a review August 9, 2023 08:16
Copy link
Contributor

@feeblefakie feeblefakie left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!
Before merging, let's change the title!

@@ -0,0 +1,243 @@
# Configure ScalarDB for Your Database
Copy link
Contributor

Choose a reason for hiding this comment

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

I also think Getting Started with ScalarDB is more appropriate. Let's change it!

we also have other "Getting Started" docs
Which ones?
Maybe, we need to rename them appropriately.

Copy link
Collaborator

@brfrn169 brfrn169 left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

@brfrn169 brfrn169 merged commit 7697ec6 into master Aug 14, 2023
@brfrn169 brfrn169 deleted the revise-reorganize-getting-started-docs branch August 14, 2023 01:57
@josh-wong
Copy link
Member Author

@brfrn169 Thank you for merging this PR! Can we also apply the changes to branches 3.10 to 3.5?

@brfrn169
Copy link
Collaborator

@brfrn169 Thank you for merging this PR! Can we also apply the changes to branches 3.10 to 3.5?

@josh-wong The auto-PR workflow, which automatically creates PRs for the support/release branches, has failed:
https://github.com/scalar-labs/scalardb/actions/runs/5850991695/job/15861138617

Can you please create PRs for this change manually, targeting the branches 3.10 to 3.5?

@josh-wong
Copy link
Member Author

@brfrn169 Got it. Will do!

@josh-wong josh-wong restored the revise-reorganize-getting-started-docs branch August 14, 2023 05:53
@brfrn169 brfrn169 deleted the revise-reorganize-getting-started-docs branch August 14, 2023 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants