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

release 2.0.0alpha1 #32

Merged
merged 50 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from 49 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
7f4330c
Add new 'sql-transformations' folder, with bash script 'getvegbanksql…
doulikecookiedough Jul 23, 2024
4b2da2d
Add required .sql files defined in 'updateSQLFile' parameter in 'db_m…
doulikecookiedough Jul 24, 2024
bff0705
Add 'INSTALL.md' to provide WIP context, and modify 'db_model_vegbank…
doulikecookiedough Jul 24, 2024
5e611b6
Add initial migrations WIP flow, not yet tested with flyway, and TO-D…
doulikecookiedough Jul 24, 2024
39300ef
Rename migration file, add additional context for 'INSTALL.md' regard…
doulikecookiedough Aug 5, 2024
8ad27da
Add additional context to 'INSTALL.md' for clarity
doulikecookiedough Aug 5, 2024
3acdc72
Add 'populate-datadictionary.sql' doc to migrations, update INSTALL.R…
doulikecookiedough Aug 5, 2024
c0afa7a
Add TODO item in 'INSTALL.md' to review 'dbVerify' target
doulikecookiedough Aug 5, 2024
9312f9c
Remove dbVerify TODO in 'INSTALL.md' - not necessary
doulikecookiedough Aug 7, 2024
cea47f6
Add 'create_admin_user.sql' to migrations
doulikecookiedough Aug 7, 2024
dbcf685
Add 'resources' folder with initial 'flyway.conf' file
doulikecookiedough Aug 7, 2024
317fa8c
Update 'flyway.conf' user and password
doulikecookiedough Aug 7, 2024
be6a270
Rename migrations sql files to follow flyway naming conventions (Ex. …
doulikecookiedough Aug 7, 2024
e7663fe
Fix exceptions causing migration to fail in V1.3__createIndices file …
doulikecookiedough Aug 7, 2024
9db046c
Rename some migration files for consistency
doulikecookiedough Aug 7, 2024
6d5ded2
Fix exception causing migration to fail in V1.4__drop... file by addi…
doulikecookiedough Aug 7, 2024
6bb395a
Update INSTALL.md with additional context to manual changes to migrat…
doulikecookiedough Aug 7, 2024
a88f462
Fix exception causing migration to vail in V1.5__create... by adding …
doulikecookiedough Aug 8, 2024
10d3631
Add new migration file step to drop views before re-creating them, an…
doulikecookiedough Aug 8, 2024
ebeda73
Add flyway 'README.md' in /resources to provide some flyway know-how …
doulikecookiedough Aug 8, 2024
305cc9a
Update flyway 'README.md' for more context and wording
doulikecookiedough Aug 8, 2024
97e215d
Create new migration file 'V1.12__add_constraints.sql' where alter ta…
doulikecookiedough Aug 23, 2024
a493778
Disable migration sql commands that conflicts with the data dump process
doulikecookiedough Aug 23, 2024
e5de662
Add logs for dump file execution with constraints moved, (unsuccessfu…
doulikecookiedough Aug 23, 2024
d5d11be
Complete comment out V1.6 migrations
doulikecookiedough Aug 24, 2024
d3f7b88
Add missing table 'temp_ks_commconcept_acccodelist' and sequence 'dba…
doulikecookiedough Aug 24, 2024
6955cc1
Add log to 'sql-logs' where successfully loaded all records from data…
doulikecookiedough Aug 24, 2024
934e2cd
Move sql-logs and sql-transformations folder into new parent director…
doulikecookiedough Aug 24, 2024
d7e7c75
Revise 'V1.0' migration observation table's hydrologicRegime varchar …
doulikecookiedough Aug 24, 2024
203ce2f
Revise 'V1.0' migration observation table's hydrologicRegime varchar …
doulikecookiedough Aug 24, 2024
21ceaba
Add note into 'V1.6' migrations file to clarify why this migration ha…
doulikecookiedough Aug 24, 2024
a10247d
Remove redundant sequence creation for 'dba_preassignacccode_dba_requ…
doulikecookiedough Aug 24, 2024
a85bcd4
Rename sql-log files
doulikecookiedough Aug 24, 2024
ab7240d
Rename 'INSTALL.md' in sql-transformations to 'README', revise conten…
doulikecookiedough Aug 24, 2024
0cc1d4b
Add README.md
doulikecookiedough Aug 24, 2024
645ef29
Add new 'INSTALL.md' document in repo root to describe how to success…
doulikecookiedough Aug 24, 2024
ea95718
Update readme docs
doulikecookiedough Aug 24, 2024
c406ec0
Merge pull request #30 from NCEAS/feature-29-constraint-migration
doulikecookiedough Aug 24, 2024
fe0a00a
Add additional context to 'INSTALL.md' for when generating a data-onl…
doulikecookiedough Aug 28, 2024
80aa80d
Update 'INSTALL.md' for docker pg16 restoration process for vegbank d…
doulikecookiedough Aug 30, 2024
7b0dbe8
Add license and contributing docs.
mbjones Sep 19, 2024
41ee62c
Update READEM to follow the standard repo template.
mbjones Sep 19, 2024
fd20d31
Moved database files to src/database directory.
mbjones Sep 19, 2024
133651f
Initial example pyproject.toml file for poetry build
mbjones Sep 19, 2024
b0f3b6b
Adding helm chart with baseline postgres setup, updating gitignore wi…
RWShelton Sep 25, 2024
bfae4a4
Add basic pytest framework.
mbjones Sep 30, 2024
32072e3
Iniital poetry-based Github Action for CI.
mbjones Oct 1, 2024
767aaac
Fix syntax errors in authors list.
mbjones Oct 1, 2024
2fca575
Add description of Github action (and `act`) to README
mbjones Oct 1, 2024
e35b3dc
Misc editorial fixes from feedback on PR #32
mbjones Oct 1, 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
34 changes: 34 additions & 0 deletions .github/workflows/python-app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python build and test

on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "develop" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
#if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
poetry run pytest
171 changes: 171 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,174 @@

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

# helm generated files
/helm/charts
/helm/Chart.lock

# MacOS Generated Files
src/.DS_Store
.DS_Store

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
.pdm.toml
.pdm-python
.pdm-build/

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
Loading
Loading