Skip to content

DOCSP-35821: link to jar download #518

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

Merged
merged 11 commits into from
Feb 6, 2024

Conversation

rustagir
Copy link
Contributor

Pull Request Info

PR Reviewing Guidelines

JIRA - https://jira.mongodb.org/browse/DOCSP-35821
Staging - https://preview-mongodbrustagir.gatsbyjs.io/java/DOCSP-35821-link-jar-file/quick-start/#add-mongodb-as-a-dependency

Self-Review Checklist

  • Is this free of any warnings or errors in the RST?
  • Did you run a spell-check?
  • Did you run a grammar-check?
  • Are all the links working?
  • Are the facets and meta keywords accurate?

Comment on lines 53 to 55
.. tip:: Download ``.jar`` File

You can directly download the ``.jar`` file for the {+driver-short+}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion:
I think JAR is usually not referenced by it's filename extension, but rather by the file format "JAR". See https://en.wikipedia.org/wiki/JAR_(file_format)

E.g.
tip:: Download the JAR File

Copy link
Contributor

@ccho-mongodb ccho-mongodb left a comment

Choose a reason for hiding this comment

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

Thanks for picking up this ticket. I think this accomplishes the goal of the ticket, but I think the information might cause confusion without additional details.

I think the content might change after confirming with the DBX team, so requesting changes so I can look again after that.

@@ -50,6 +50,12 @@ If you are using `Gradle <https://gradle.org/>`__, add the following to your

.. include:: /includes/quick-start/gradle-versioned.rst

.. tip:: Download the JAR File

You can directly download the JAR file for the {+driver-short+}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion:
I think "directly" could provide contrast when compared with another option, but I think omitting it when there isn't a comparison being made would be better.

"You can download..."

Comment on lines 55 to 58
You can directly download the JAR file for the {+driver-short+}
from the `Maven MongoDB Driver artifact entry
<https://mvnrepository.com/artifact/org.mongodb/mongodb-driver-sync/{+full-version+}>`__.

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion:
I think this could use similar wording as this download mention:

"You can download the JAR file for the MongoDB Java Driver from the Maven repository."

@@ -50,6 +50,12 @@ If you are using `Gradle <https://gradle.org/>`__, add the following to your

.. include:: /includes/quick-start/gradle-versioned.rst

.. tip:: Download the JAR File
Copy link
Contributor

Choose a reason for hiding this comment

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

Issue/Suggestion:

Could you confirm whether you might need to make the following changes in a technical review?

My guess is that the goal of the ticket is to provide a download location so that the user can download and add them to their app classpath so that they can perform MongoDB operations.

However, I think the mongodb-driver-sync JAR file has these dependencies which means it won't work without them. For context, there used to be another JAR file that contained all the dependencies (called the Uber JAR), but the DBX team no longer provides builds for that.

The current quick start instructions depend on Maven or Gradle to manage all the dependencies of the mongodb-driver-sync JAR.

I think one of the following solutions could improve the usefulness of this info:

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'll check what DBX and the ticket creator prefer!

@rustagir rustagir requested a review from ccho-mongodb February 6, 2024 19:27
Copy link
Contributor

@ccho-mongodb ccho-mongodb left a comment

Choose a reason for hiding this comment

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

A couple suggestions, but do not need to review again unless requested.

@@ -50,6 +50,13 @@ If you are using `Gradle <https://gradle.org/>`__, add the following to your

.. include:: /includes/quick-start/gradle-versioned.rst

.. note::

We recommend that you use a package manager to install the
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion:
I think Maven and Gradle are more often described as "build tools" or "dependency managers" based on the specific part of the functionality that's being described.

For example:

Comment on lines 57 to 58
and dependency packages, you can find the JAR files in the `Maven
repository <https://mvnrepository.com/artifact/org.mongodb/mongodb-driver-sync/>`__.
Copy link
Contributor

Choose a reason for hiding this comment

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

Issue:

The current link only contains the mongodb-driver-sync JAR and not any of the dependencies.

Suggestion:
I think it could be more helpful to specify the group (which references all org.mongodb JARs) and which ones are necessary.

Suggested change
and dependency packages, you can find the JAR files in the `Maven
repository <https://mvnrepository.com/artifact/org.mongodb/mongodb-driver-sync/>`__.
and its dependencies, you can find the JAR files in the `MongoDB Group Maven
repository <https://mvnrepository.com/artifact/org.mongodb/>`__. The Java Sync
driver requires the ``mongodb-driver-core``, ``bson``, and ``mongodb-driver-sync``
JAR files.

@rustagir rustagir merged commit 8a643e1 into mongodb:master Feb 6, 2024
rustagir added a commit that referenced this pull request Feb 6, 2024
* DOCSP-35821: link to jar download

* remove trailing slash

* change file fmt

* CC PR fixes 1

* redo after discussion

* small fixes

* CC suggestions

* small fixes

* small fix

* wording fix

(cherry picked from commit 8a643e1)
rustagir added a commit that referenced this pull request Feb 6, 2024
* DOCSP-35821: link to jar download

* remove trailing slash

* change file fmt

* CC PR fixes 1

* redo after discussion

* small fixes

* CC suggestions

* small fixes

* small fix

* wording fix

(cherry picked from commit 8a643e1)
rustagir added a commit that referenced this pull request Feb 6, 2024
* DOCSP-35821: link to jar download

* remove trailing slash

* change file fmt

* CC PR fixes 1

* redo after discussion

* small fixes

* CC suggestions

* small fixes

* small fix

* wording fix

(cherry picked from commit 8a643e1)
rustagir added a commit that referenced this pull request Feb 6, 2024
* DOCSP-35821: link to jar download

* remove trailing slash

* change file fmt

* CC PR fixes 1

* redo after discussion

* small fixes

* CC suggestions

* small fixes

* small fix

* wording fix

(cherry picked from commit 8a643e1)
rustagir added a commit that referenced this pull request Feb 6, 2024
* DOCSP-35821: link to jar download

* remove trailing slash

* change file fmt

* CC PR fixes 1

* redo after discussion

* small fixes

* CC suggestions

* small fixes

* small fix

* wording fix

(cherry picked from commit 8a643e1)
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.

2 participants