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

Refreshing the page after a finished validation #96

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cervenkam
Copy link
Collaborator

Page will be refreshed automatically after a validation will be done.
The user will see a loading animation to make him more comfortable to wait

@cervenkam cervenkam marked this pull request as ready for review June 30, 2022 10:58
Copy link
Collaborator

@mpsonntag mpsonntag left a comment

Choose a reason for hiding this comment

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

The current state breaks the one-time validation for NIX and odML.

internal/web/results.go Outdated Show resolved Hide resolved
internal/web/validate.go Outdated Show resolved Hide resolved
cmd/ginvalid/main.go Outdated Show resolved Hide resolved
@@ -0,0 +1,16 @@
window.addEventListener("load", function(evt) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Currently this is called on every page; the execution should be restricted to the results page if results are still unavailable.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Opened issue #97

@coveralls
Copy link

coveralls commented Jun 30, 2022

Pull Request Test Coverage Report for Build 2590904807

  • 12 of 42 (28.57%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.4%) to 46.54%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/web/user.go 0 4 0.0%
internal/web/validate.go 0 26 0.0%
Totals Coverage Status
Change from base Build 2590251217: -0.4%
Covered Lines: 686
Relevant Lines: 1474

💛 - Coveralls

Page will be refreshed after a validation
will be done
Copy link
Collaborator

@mpsonntag mpsonntag left a comment

Choose a reason for hiding this comment

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

https websocket connection seems to have issues with the current setup.

new_uri = "ws:";
}
new_uri += "//" + loc.host + "/ws";
ws = new WebSocket(new_uri);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just tested it on valid.dev.g-node.org, where it fails here with the browser console message WebSocket connection to 'wss://valid.dev.g-node.org/ws' failed.

@mpsonntag
Copy link
Collaborator

The changes are kept in a separate branch; I'll change the PR status to draft until the required changes can be added.

@mpsonntag mpsonntag marked this pull request as draft July 12, 2022 10:22
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.

4 participants