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

Refactor bcgov/api and merge to bcgov/wps #432

Merged
merged 105 commits into from
Aug 18, 2020
Merged

Conversation

Kyubinhan
Copy link
Contributor

@Kyubinhan Kyubinhan commented Aug 15, 2020

  • Move all the API files under api/
  • Update sonar-project.properties to narrow down the coverage focus
  • Update Openshift scripts (paths and env variables)
  • Remove bash scripts and common folder at root
  • Update fireweather_bot.py to raise more exceptions
  • Add more commands in Makefile for docker environment
  • Copy all the files at the last step in dev.Dockerfile

DerekRoberts and others added 30 commits January 29, 2020 18:37
Skeleton for API project
Added stations and percentiles (reading from json files)
* Add basic script for calculating 90th percentile on sample data

* Revised script & output based on Brady's initial feedback

* Add start & end time ranges as parameters

* Add Jupyter notebook for script interaction

* Modified script to calculate percentiles offline; add results as json file

* Clean out unneeded files

* Edits made based on Sy's feedback for PR
- All weather station names.
- Extracting csv from access database.
- Update Pipfile.lock.
- Fixed unit tests.
- Added sample environment file.
- formatting station json nicely
- exclude stations starting with ZZ (inactive) and ending with QD (quick deploy)
- ordered result by station name)
* Adding initial pipeline code for deployment to openshift.

Updated jenkinsfile and openshift templates. Included ORIGINS env. variable.

* Using wps-api for config and deploy scripts.

* Updated the match label.

* Removed build notifications and using env variable for origins saved in config map.

* Updated the definition of data under config map.

* Using master branch as reference.
- Re-generated data with year list
- Change calculate_percentile_offline.py to comply with pep8
- Added comment on data_years type
…e - WPS #95 (#17)

* Generated precalculated percentiles data for 20 year and full range of data available for weather stations

* Updated folder names

* Updated script to generate precalculated percentile data for multiple year ranges

* test commit

* Removed default year range

* Added new tests to check for blank stations and invalid year range

* updated folder name logic and updated run command to run tests before run
* Add updated weather_stations.json after newest script execution
* Resolve missed merge with master; add updated data jsons
* Added disclaimer to API description

* Deleted empty file
* Cleanup before moving to shared pipeline scripts
NOTE: this is not going through the pipeline, because it (temporarily) eliminated the pipeline!
git-subtree-dir: openshift/scripts
git-subtree-split: 262ed11
NOTE: There is still no pipeline, since this PR is adding files to get the new pipeline running.
* Copied wps-web Jenkinsfile

* Renamed BC and DC for general consumption

* BC modified to use standard vars

* BC relabeling, cleanup and adjustment

* BC and DC revision

* Cut down DC and fixed some identation

* Updated image path

* Removed old Rocket.Chat token

* DC allocations, typos and env.origins

* Removed stale vars in BC and Jenkinsfile
* Remove uncooperative subtree

* Squashed 'openshift/scripts/' content from commit b18e587

git-subtree-dir: openshift/scripts
git-subtree-split: b18e587

* Squashed 'openshift/scripts/' changes from b18e587..9a2c8cd

9a2c8cd oc_cleanup.sh typo (#163)

git-subtree-dir: openshift/scripts
git-subtree-split: 9a2c8cd
and set allowed origins to wps-web-*.pathfinder.gov.bc.ca
* Changed json structure to comply with python conventions.
* Changed python code to comply to linting rules.
* Added linting rules.
* Removed data for stations not used.
* Added standardized ways to run test and lint.
* Added additional Dockerfile to deal with linting in "dev" build environment.
* Added linting commands to Makefile.
* Modified some python code to allow linting to pass when developer packages aren't installed.
* Updated documentation/README
* test.sh and lint.sh working now
* Bump bleach from 3.1.1 to 3.1.2

Bumps [bleach](https://github.com/mozilla/bleach) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/mozilla/bleach/releases)
- [Changelog](https://github.com/mozilla/bleach/blob/master/CHANGES)
- [Commits](mozilla/bleach@v3.1.1...v3.1.2)

Signed-off-by: dependabot[bot] <support@github.com>

* Ran pipenv update

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sybrand and others added 13 commits August 12, 2020 10:12
* documented assumptions
script for copying a database from an openshift pod to local
- Renamed models as requested in prior code review (they make a bit more sense now)
- Removed all references to "forecast" from the models, in order to reduce confusion between what forecasters forecast, and what weather models predict.
- Updated poetry references to latest.
@Kyubinhan Kyubinhan changed the title Task/merge wps api 2/272 Refactor bcgov/api and merge to bcgov/wps Aug 18, 2020
@sonarcloud
Copy link

sonarcloud bot commented Aug 18, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 6 Code Smells

93.9% 93.9% Coverage
0.0% 0.0% Duplication

@Kyubinhan Kyubinhan marked this pull request as ready for review August 18, 2020 19:56
@Kyubinhan Kyubinhan merged commit 175e375 into main Aug 18, 2020
@Kyubinhan Kyubinhan deleted the task/merge-wps-api-2/272 branch August 18, 2020 22:00
vanislekahuna pushed a commit to vanislekahuna/wps that referenced this pull request Sep 19, 2024
* Move all the API files under `api/`
* Update `sonar-project.properties` to narrow down the coverage focus
* Update Openshift scripts (paths and env variables)
* Remove bash scripts and common folder at root
* Update `fireweather_bot.py` to raise more exceptions
* Add more commands in Makefile for docker environment
* Copy all the files at the last step in `dev.Dockerfile`
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