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

Implements Permalinking #19

Merged
merged 4 commits into from
May 24, 2024
Merged

Implements Permalinking #19

merged 4 commits into from
May 24, 2024

Conversation

sswastik02
Copy link
Contributor

Adds UI Element to choose version
Adds version handling in index.html

Closes #8

Adds version query paramter to use commit SHAs of `gh-pages` branch for
fetching `summary.json`

Signed-off-by: sswastik02 <[email protected]>
Copy link

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. label May 21, 2024
Copy link

Thank you for signing the OCA.

@oracle-contributor-agreement oracle-contributor-agreement bot added OCA Verified All contributors have signed the Oracle Contributor Agreement. and removed OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. labels May 21, 2024
@sswastik02
Copy link
Contributor Author

@brenns10, Please do let me know if any changes are necessary.

Copy link
Member

@brenns10 brenns10 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 a really excellent first step, thank you for this! I've added some comments below, the main items are that we should express the versions to the user in terms of date (i.e. commit date), not SHA. And the default version should be the most recent one, i.e. the current gh-pages branch. With fixes for that, I'll merge it.

Again, thanks!

index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
index.html Show resolved Hide resolved
Copy link

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public.

@oracle-contributor-agreement oracle-contributor-agreement bot added OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. and removed OCA Verified All contributors have signed the Oracle Contributor Agreement. labels May 23, 2024
@brenns10
Copy link
Member

No need to credit me in commits, this is all part of code review, it is your work!

(But if you do mention me, the Oracle bot will yell unless you use my oracle email address: [email protected])

Copy link

Thank you for signing the OCA.

@oracle-contributor-agreement oracle-contributor-agreement bot added OCA Verified All contributors have signed the Oracle Contributor Agreement. and removed OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. labels May 23, 2024
Adds Button to choose version of website
Adds modal for selector of version

Signed-off-by: sswastik02 <[email protected]>
@sswastik02 sswastik02 force-pushed the main branch 2 times, most recently from 102cced to 4597fc8 Compare May 23, 2024 18:43
Modifies `updateVersion` function to return "gh-pages" when no version is present.
Modifies `updateVersion` function to reload page when wrong version is present.

Co-authored-by: Stephen Brennan <[email protected]>
Signed-off-by: sswastik02 <[email protected]>
Adds a date picker using Bootstrap Date Picker and uses a version date
mapping to redirect to right version after choosing date

Signed-off-by: sswastik02 <[email protected]>
@sswastik02
Copy link
Contributor Author

@brenns10, I have made the required changes, please do let me know if they are ok.

@sswastik02 sswastik02 requested a review from brenns10 May 24, 2024 02:35
Copy link
Member

@brenns10 brenns10 left a comment

Choose a reason for hiding this comment

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

@sswastik02 this is great! I pulled it down to test it locally, and I did encounter two small issues. However, I found that it was a bit easier to tweak it a bit myself to resolve them. So what I'm doing is merging this as-is, and then I'll add a commit on top of this which adds some tiny tweaks. Thank you for this great contribution!

index.html Show resolved Hide resolved
index.html Show resolved Hide resolved
@brenns10 brenns10 merged commit 4b004aa into oracle:main May 24, 2024
2 checks passed
@brenns10
Copy link
Member

Here are the very minor tweaks I ended up making: b367512

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add permalinking
2 participants