-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update all refs to datagov-deploy to data.gov repo
For some reason also a linting of that JS file. Also, included the sql file remove/revert on purpose if we want to go that route in the future.
- Loading branch information
1 parent
b385767
commit 34b36ba
Showing
8 changed files
with
50 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# gunicorn prior to version 20.1.0 discloses "server" header | ||
# https://github.com/GSA/datagov-deploy/issues/2826 | ||
# https://github.com/GSA/data.gov/issues/2826 | ||
import gunicorn | ||
gunicorn.SERVER_SOFTWARE = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
describe('Facets', { testIsolation: false }, () => { | ||
before(() => { | ||
cy.login(); | ||
}); | ||
describe("Facets", { testIsolation: false }, () => { | ||
before(() => { | ||
cy.login(); | ||
}); | ||
|
||
after(() => { | ||
cy.delete_organization('org-tags'); | ||
cy.delete_group('group-facets'); | ||
cy.logout(); | ||
}); | ||
after(() => { | ||
cy.delete_organization("org-tags"); | ||
cy.delete_group("group-facets"); | ||
cy.logout(); | ||
}); | ||
|
||
it('Show datagov facet list on dataset page', () => { | ||
cy.visit('/dataset'); | ||
cy.get('.filters h2').its('length').should('be.equal', 9); | ||
cy.get('.filters h2').first().contains('Topics'); | ||
cy.get('.filters h2').last().contains('Bureaus'); | ||
}); | ||
it("Show datagov facet list on dataset page", () => { | ||
cy.visit("/dataset"); | ||
cy.get(".filters h2").its("length").should("be.equal", 9); | ||
cy.get(".filters h2").first().contains("Topics"); | ||
cy.get(".filters h2").last().contains("Bureaus"); | ||
}); | ||
|
||
it('Show datagov facet list on organization page', () => { | ||
cy.visit('/organization'); | ||
cy.get('a[class="btn btn-primary"]').click(); | ||
cy.create_organization_ui('org-tags', 'tags for org test'); | ||
cy.visit('/organization/org-tags'); | ||
cy.get('.module-shallow').its('length').should('be.equal', 11); | ||
cy.get('.module-shallow').contains('Topics'); | ||
cy.get('.module-shallow').contains('Harvest Source'); | ||
cy.get('.module-shallow').last().contains('Bureaus'); | ||
}); | ||
it("Show datagov facet list on organization page", () => { | ||
cy.visit("/organization"); | ||
cy.get('a[class="btn btn-primary"]').click(); | ||
cy.create_organization_ui("org-tags", "tags for org test"); | ||
cy.visit("/organization/org-tags"); | ||
cy.get(".module-shallow").its("length").should("be.equal", 11); | ||
cy.get(".module-shallow").contains("Topics"); | ||
cy.get(".module-shallow").contains("Harvest Source"); | ||
cy.get(".module-shallow").last().contains("Bureaus"); | ||
}); | ||
|
||
it('Show datagov facet list on group page', () => { | ||
cy.create_group('group-facets'); | ||
cy.visit('/group/group-facets'); | ||
cy.get('.filters h2').its('length').should('be.equal', 6); | ||
cy.get('.filters h2').first().contains('Categories'); | ||
cy.get('.filters h2').last().contains('Organizations'); | ||
}); | ||
it("Show datagov facet list on group page", () => { | ||
cy.create_group("group-facets"); | ||
cy.visit("/group/group-facets"); | ||
cy.get(".filters h2").its("length").should("be.equal", 6); | ||
cy.get(".filters h2").first().contains("Categories"); | ||
cy.get(".filters h2").last().contains("Organizations"); | ||
}); | ||
|
||
// https://github.com/GSA/datagov-deploy/issues/3672 | ||
it('Can visit organization and group facet link', () => { | ||
cy.visit('/organization/org-tags?tags=_'); | ||
cy.visit('/group/group-facets?tags=_'); | ||
}); | ||
// https://github.com/GSA/data.gov/issues/3672 | ||
it("Can visit organization and group facet link", () => { | ||
cy.visit("/organization/org-tags?tags=_"); | ||
cy.visit("/group/group-facets?tags=_"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Locations table | ||
|
||
The locations table [was defined in 2016](https://github.com/GSA/datagov-deploy/search?q=location+table&type=commits). | ||
This table was deleted from the repo but is still available from old commits: [locations.sql.gz](https://github.com/GSA/datagov-deploy/raw/71936f004be1882a506362670b82c710c64ef796/ansible/roles/software/ec2/ansible/files/locations.sql.gz). | ||
The locations table [was defined in 2016](https://github.com/GSA/data.gov/search?q=location+table&type=commits). | ||
This table was deleted from the repo but is still available from old commits: [locations.sql.gz](https://github.com/GSA/data.gov/raw/71936f004be1882a506362670b82c710c64ef796/ansible/roles/software/ec2/ansible/files/locations.sql.gz). | ||
|
||
This table could be dd to database with | ||
|
||
``` | ||
./install-locations-table.sh HOST DB_NAME DB_USER PASS | ||
``` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters