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

feat: show detailed messages from validator-services #793

Merged
merged 18 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
82a943a
Merge pull request #775 from IATI/main
tillywoodfield Oct 24, 2024
ce2379b
build(deps): bump uuid from 10.0.0 to 11.0.2 (#781)
dependabot[bot] Oct 29, 2024
ea9c591
build(deps-dev): bump typescript-eslint from 8.11.0 to 8.12.2 (#782)
dependabot[bot] Oct 29, 2024
12fa730
build(deps-dev): bump cypress from 13.15.0 to 13.15.1 (#777)
dependabot[bot] Oct 29, 2024
7736a4a
build(deps-dev): bump eslint-plugin-vue from 9.29.1 to 9.30.0 (#780)
dependabot[bot] Oct 29, 2024
970698c
build(deps-dev): bump sass from 1.80.3 to 1.80.4 (#776)
dependabot[bot] Oct 29, 2024
e283556
build(deps-dev): bump sass from 1.80.4 to 1.80.5 (#784)
dependabot[bot] Oct 30, 2024
39ba433
build(deps-dev): bump eslint-plugin-cypress from 4.0.0 to 4.1.0 (#785)
dependabot[bot] Oct 31, 2024
0d6fbae
build(deps-dev): bump eslint from 9.13.0 to 9.14.0 (#789)
dependabot[bot] Nov 4, 2024
116a8d8
build(deps-dev): bump sass from 1.80.5 to 1.80.6 (#786)
dependabot[bot] Nov 4, 2024
c2e9e14
build(deps-dev): bump globals from 15.11.0 to 15.12.0 (#787)
dependabot[bot] Nov 4, 2024
0305f03
build(deps-dev): bump typescript-eslint from 8.12.2 to 8.13.0 (#790)
dependabot[bot] Nov 5, 2024
2fc88ff
lint: run on README
simon-20 Nov 5, 2024
36e8794
feat: show detailed messages from validator-services
simon-20 Nov 5, 2024
8ff18f7
test: tests for when vs in maintenance mode
simon-20 Nov 6, 2024
666e157
build(deps-dev): bump cypress from 13.15.1 to 13.15.2 (#792)
dependabot[bot] Nov 6, 2024
228f826
Merge branch 'develop' into show_maintenance_mode_msg
simon-20 Nov 7, 2024
a4795c7
Merge pull request #791 from IATI/show_maintenance_mode_msg
simon-20 Nov 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
Summary
=======

Product | Validator Web Frontend
--- | ---
Description | Vue.js app website for the IATI Validator.
Website | [https://validator.iatistandard.org/](https://validator.iatistandard.org)
Related | [js-validator-api](https://github.com/IATI/js-validator-api), [validator-services](https://github.com/IATI/validator-services)
Documentation | [https://developer.iatistandard.org/](https://developer.iatistandard.org/)
Technical Issues | https://github.com/IATI/validator-web/issues
Support | https://iatistandard.org/en/guidance/get-support/
# Summary

| Product | Validator Web Frontend |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| Description | Vue.js app website for the IATI Validator. |
| Website | [https://validator.iatistandard.org/](https://validator.iatistandard.org) |
| Related | [js-validator-api](https://github.com/IATI/js-validator-api), [validator-services](https://github.com/IATI/validator-services) |
| Documentation | [https://developer.iatistandard.org/](https://developer.iatistandard.org/) |
| Technical Issues | https://github.com/IATI/validator-web/issues |
| Support | https://iatistandard.org/en/guidance/get-support/ |

# Vue Template

Expand Down
24 changes: 24 additions & 0 deletions cypress/integration/checkData.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,28 @@ describe("The Ad Hoc Validate Check Data page", () => {
cy.contains("a", "View Progress and Reports").click();
cy.contains("Failed to load iati data please try again later");
});
it("displays error message uploading a file when validator-services is in maintenance mode", () => {
cy.intercept("POST", "https://*api.iatistandard.org/vs/pvt/adhoc/upload?*", {
statusCode: 503,
body: { message: "Validator services is in read-only mode for maintenance" },
});
cy.get("input[type=file").selectFile("cypress/fixtures/iati-act-no-errors.xml", { force: true });
cy.contains("iati-act-no-errors.xml");
cy.contains("button", "Upload").should("not.be.disabled").click();
cy.contains("Validator services is in read-only mode for maintenance", { timeout: 20000 });
cy.contains("a", "View Progress and Reports").parent().should("have.class", "pointer-events-none");
});
it("displays error message fetching a url when validator-services is in maintenance mode", () => {
cy.intercept("POST", "https://*api.iatistandard.org/vs/pvt/adhoc/url?**/**", {
statusCode: 503,
body: { message: "Validator services is in read-only mode for maintenance" },
});
cy.contains("URL to a remote file").click();
cy.get("#url").type(
"https://raw.githubusercontent.com/IATI/IATI-Extra-Documentation/version-2.03/en/activity-standard/activity-standard.xml",
);
cy.contains("button", "Fetch").should("not.be.disabled").click();
cy.contains("Validator services is in read-only mode for maintenance", { timeout: 20000 });
cy.contains("a", "View Progress and Reports").parent().should("have.class", "pointer-events-none");
});
});
Loading