Skip to content

Commit

Permalink
Bring over gwells code from the release branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
fergmac committed Aug 7, 2024
1 parent 2fa898a commit b1b335d
Show file tree
Hide file tree
Showing 298 changed files with 30,913 additions and 11,782 deletions.
Binary file added .DS_Store
Binary file not shown.
1 change: 0 additions & 1 deletion gwells/.env

This file was deleted.

24 changes: 24 additions & 0 deletions gwells/.github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Bug
about: An undesirable behaviour that needs correction
title: ''
labels: ''
assignees: ''

---

**Describe the Bug**
A clear and concise description of what the bug is.

**Expected Behaviour**
A clear and concise description of what you expected to happen.

**Actual Behaviour**
A clear and concise description of what actually happens.

** Steps To Reproduce**
Steps to reproduce the behaviour:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
26 changes: 26 additions & 0 deletions gwells/.github/ISSUE_TEMPLATE/spike.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Spike
about: Research options prior to development work
title: ''
labels: Spike
assignees: ''

---

**Problem Description**
**In order to** (achieve some goal), (a system or persona) **needs to** (some action).

**Solution Needs**
- Enter the non-negotiables of the solution (what are the needs vs. what are the wants)

**Timebox**
- How much effort are we committing to this research?

**Outcome**
Details describing the outcome of the research
- Was it successful? What direction should the work go?
- Was it unsuccessful? Discuss next steps with team

**Additional Context**
- enter text here
- enter text here
23 changes: 23 additions & 0 deletions gwells/.github/ISSUE_TEMPLATE/task.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Task
about: Any work that does not directly impact the user
title: ''
labels: Task
assignees: ''

---

**Describe the task**
A clear and concise description of what the task is.

**Purpose**
The reason why this task is needed and/or what value it adds.

**Acceptance Criteria**
- [ ] first
- [ ] second
- [ ] third

**Additional context**
- Add any other context about the task here.
- Or here
18 changes: 18 additions & 0 deletions gwells/.github/ISSUE_TEMPLATE/user-story.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: User Story
about: This template is to be used when describing a feature from the user's perspective
title: ''
labels: User Story
assignees: ''

---

**As a** *(User Type/Persona)* **I want** *(Feature/enhancement)* **So That** *(Value, why is this wanted, what is the user trying to accomplish)*

**Additional Context**
- enter text here
- enter text here

**Acceptance Criteria**
- [ ] Given (Context), When (action carried out), Then (expected outcome)
- [ ] Given (Context), When (action carried out), Then (expected outcome)
13 changes: 13 additions & 0 deletions gwells/.github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Pull Request Standards

- [ ] The title of the PR is accurate
- [ ] The title includes the type of change [`HOTFIX`, `FEATURE`, `etc`]
- [ ] The PR title includes the ticket number in format of `[GWELLS-###]`
- [ ] Documentation is updated to reflect change [`README`, `functions`, `team documents`]

# Description

This PR includes the following proposed change(s):

- { List all the changes made }
- { Include any screenshots necessary }
7 changes: 7 additions & 0 deletions gwells/.github/codeowners
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Matched against repo root (asterisk)
* @bcgov/sustainment-team @DerekRoberts

# Matched against directories
# /.github/workflows/ @mishraomp @DerekRoberts

# See https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
40 changes: 40 additions & 0 deletions gwells/.github/labeller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Auto Label Git Action Config
# 'label_name'
# - path_of_diff/where/code_lives/to_base_label_upon

# Any change to any file in .github/workflows
'GitHub Actions':
- '.github/workflows/*'

# Any change to the docker-compose file or any dockerfile in the repo
'Docker':
- '**/Dockerfile'
- docker-compose.yml

# Any changes to file or subfolders in /backend
'Backend':
- 'app/backend/**/*'

# Any changes to file or subfolders in /frontend
'Frontend':
- 'app/frontend/**/*'

# Any changes to file or subfolders in /database
'Database':
- 'app/database/**/*'

# Any changes to file or subfolders in /scripts
'Scripts':
- 'app/scripts/**/*'

# Any changes to file or subfolders in /openshift
'OpenShift':
- 'openshift/**/*'

# Any changes to file of subfolders in /tests
'Testing':
- 'tests/**/*'

# Any change to any file in any directory with a .env in name
'Environment Variables':
- '**/*.env*'
15 changes: 15 additions & 0 deletions gwells/.github/workflows/pr-labeller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeller.yaml
6 changes: 5 additions & 1 deletion gwells/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
*.rar
*.tar
*.zip
!regional_areas.zip
!qaqc_well_data.zip

# Logs and databases #
######################
Expand All @@ -41,7 +43,7 @@ app/backend/aquifers/fixtures/tmp/*
ehthumbs.db
Thumbs.db
*.md5

.env*

##################
# This repo only #
Expand Down Expand Up @@ -91,11 +93,13 @@ app/backend/bulk
*.spec
pip-log.txt
pip-delete-this-directory.txt
app/backend/get-pip.py

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
**/coverage
.coverage.*
.cache
*,cover
Expand Down
24 changes: 24 additions & 0 deletions gwells/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## Contributor Code of Conduct

As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.

We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.

Examples of unacceptable behavior by participants include:

- The use of sexualized language or imagery
- Personal attacks
- Trolling or insulting/derogatory comments
- Public or private harassment
- Publishing other's private information, such as physical or electronic addresses, without explicit permission
- Other unethical or unprofessional conduct

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community.

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting a project maintainer at [[email protected]](mailto:[email protected]). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. Maintainers are obligated to maintain confidentiality with regard to the reporter of an incident.

This Code of Conduct is adapted from the Contributor Covenant, version 1.3.0, available at [http://contributor-covenant.org/version/1/3/0/](http://contributor-covenant.org/version/1/3/0/)
11 changes: 11 additions & 0 deletions gwells/COMPLIANCE.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: compliance
description: |
This document is used to track a projects PIA and STRA
compliance.
spec:
- name: PIA
status: in-progress
last-updated: '2020-01-20T00:04:29.148Z'
- name: STRA
status: completed
last-updated: '2020-01-20T00:04:29.148Z'
39 changes: 35 additions & 4 deletions gwells/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,24 @@ def apiTest (String stageName, String stageUrl, String envSuffix) {
--global-var client_secret=\$GWELLS_API_TEST_CLIENT_SECRET \
-r cli,junit,html
newman run ./aquifers_v2_api_tests.json \
--global-var test_user=\$GWELLS_API_TEST_USER \
--global-var test_password=\$GWELLS_API_TEST_PASSWORD \
--global-var base_url=\$BASE_URL \
--global-var auth_server=\$GWELLS_API_TEST_AUTH_SERVER \
--global-var client_id=\$GWELLS_API_TEST_CLIENT_ID \
--global-var client_secret=\$GWELLS_API_TEST_CLIENT_SECRET \
-r cli,junit,html
newman run ./cities_api_tests.json \
--global-var base_url=\$BASE_URL \
--global-var auth_server=\$GWELLS_API_TEST_AUTH_SERVER \
--global-var client_id=\$GWELLS_API_TEST_CLIENT_ID \
--global-var client_secret=\$GWELLS_API_TEST_CLIENT_SECRET \
-r cli,junit,html
newman run ./configuration_api_tests.json \
--global-var base_url=\$BASE_URL \
--global-var auth_server=\$GWELLS_API_TEST_AUTH_SERVER \
--global-var client_id=\$GWELLS_API_TEST_CLIENT_ID \
--global-var client_secret=\$GWELLS_API_TEST_CLIENT_SECRET \
-r cli,junit,html
newman run ./utilities_api_tests.json \
--global-var base_url=\$BASE_URL \
--global-var auth_server=\$GWELLS_API_TEST_AUTH_SERVER \
--global-var client_id=\$GWELLS_API_TEST_CLIENT_ID \
Expand All @@ -279,8 +295,23 @@ def apiTest (String stageName, String stageUrl, String envSuffix) {
if ("dev".equalsIgnoreCase("${envSuffix}")) {
sh """
newman run ./wells_search_api_tests.json \
--global-var base_url=\$BASE_URL \
-r cli,junit,html
--global-var base_url=\$BASE_URL \
--global-var auth_server=\$GWELLS_API_TEST_AUTH_SERVER \
--global-var client_id=\$GWELLS_API_TEST_CLIENT_ID \
--global-var client_secret=\$GWELLS_API_TEST_CLIENT_SECRET \
-r cli,junit,html
newman run ./wells_search_v2_api_tests.json \
--global-var base_url=\$BASE_URL \
--global-var auth_server=\$GWELLS_API_TEST_AUTH_SERVER \
--global-var client_id=\$GWELLS_API_TEST_CLIENT_ID \
--global-var client_secret=\$GWELLS_API_TEST_CLIENT_SECRET \
-r cli,junit,html
newman run ./exports_api_tests.json \
--global-var base_url=\$BASE_URL \
--global-var auth_server=\$GWELLS_API_TEST_AUTH_SERVER \
--global-var client_id=\$GWELLS_API_TEST_CLIENT_ID \
--global-var client_secret=\$GWELLS_API_TEST_CLIENT_SECRET \
-r cli,junit,html
"""
}

Expand Down
Loading

0 comments on commit b1b335d

Please sign in to comment.