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

Add a deploy command to fides #1117

Closed
wants to merge 529 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
529 commits
Select commit Hold shift + click to select a range
ba28896
659 Add Postgres and Redis to health endpoint (#690)
eastandwestwind Jun 22, 2022
c222ce0
Execute Privacy Requests with Celery (#621)
Jun 22, 2022
106f29d
512 db redis health (#686)
eastandwestwind Jun 22, 2022
7c3bf98
Datastore Connection Filtering (#691)
TheAndrewJackson Jun 23, 2022
7975fc5
update domain -> host config references in stripe and sentry test inf…
adamsachs Jun 23, 2022
3ab9c4f
Clean up postman collection (#704)
eastandwestwind Jun 23, 2022
04f9d70
Revoke a Pending Privacy Request [#525] (#592)
pattisdr Jun 23, 2022
a899cc3
Update CHANGELOG.md, bump to `fideslib==2.1.0` (#705)
Jun 23, 2022
9756d32
Update datastore connection filters to support clearing (#701)
TheAndrewJackson Jun 23, 2022
0bb972b
Management UI updates (#702)
conceptualshark Jun 23, 2022
25c68c7
Remove stray hyphen (#709)
RobertKeyser Jun 24, 2022
d903264
Reduce docker image size (#707)
sanders41 Jun 24, 2022
8077365
Bump next-auth from 4.3.2 to 4.5.0 in /clients/privacy-center (#694)
dependabot[bot] Jun 24, 2022
f7faa97
update tutorial directions to install fidesdemo from the root directo…
conceptualshark Jun 24, 2022
89c0a3d
[SaaS Connector] Salesforce (access) (#676)
galvana Jun 24, 2022
2ec8fd2
Parallelize CI safe checks (#717)
sanders41 Jun 27, 2022
bd5f8c6
Make reading of environment variables case insensitive (#712)
sanders41 Jun 27, 2022
6157f11
Add dependabot (#718)
sanders41 Jun 27, 2022
e9cbf9c
Bump requests-mock from 1.8.0 to 1.9.3 (#732)
dependabot[bot] Jun 27, 2022
e2299b9
Bump packaging from 20.9 to 21.3 (#733)
dependabot[bot] Jun 27, 2022
088d0bf
Bump types-redis from 4.2.6 to 4.3.2 (#729)
dependabot[bot] Jun 27, 2022
c76232c
Bump faker from 8.12.1 to 13.14.0 (#730)
dependabot[bot] Jun 27, 2022
83e1d07
Bump actions/setup-python from 2 to 4 (#724)
dependabot[bot] Jun 27, 2022
b20520a
Bump actions/checkout from 2 to 3 (#723)
dependabot[bot] Jun 27, 2022
385f9a1
Bump github/codeql-action from 1 to 2 (#725)
dependabot[bot] Jun 27, 2022
71d214b
Bump docker/login-action from 1 to 2 (#722)
dependabot[bot] Jun 28, 2022
a335bc6
Bump actions/setup-node from 2 to 3 (#726)
dependabot[bot] Jun 28, 2022
44017b3
[#716] update datastore documentation (#742)
conceptualshark Jun 28, 2022
71f3be7
Adds `fidesops worker` command to start the Celery worker [#663] (#673)
Jun 28, 2022
f5dbb41
708 - fix console warning in disable connections (#750)
eastandwestwind Jun 28, 2022
4c0553b
Bump fideslib from version 2.1.0 to 2.1.1 (#721)
sanders41 Jun 29, 2022
0586b4b
Password Hashing update (#749)
TheAndrewJackson Jun 29, 2022
e79eb33
Fix no such container error with docker-compose (#758)
sanders41 Jun 30, 2022
e4cc86c
1.6.1 release (#763)
sanders41 Jun 30, 2022
6cd0072
Bump psycopg2-binary from 2.9.1 to 2.9.3 (#783)
dependabot[bot] Jul 4, 2022
c63f6b1
Bump dask from 2021.10.0 to 2022.6.1 (#781)
dependabot[bot] Jul 4, 2022
44127ba
Bump alembic from 1.6.5 to 1.8.0 (#780)
dependabot[bot] Jul 4, 2022
f53f63b
Bump sqlalchemy-bigquery from 1.3.0 to 1.4.4 (#779)
dependabot[bot] Jul 4, 2022
33a4b16
Bump pytest-cov from 2.11.1 to 3.0.0 (#787)
dependabot[bot] Jul 4, 2022
8e43ba6
Bump apscheduler from 3.8.0 to 3.9.1 (#789)
dependabot[bot] Jul 4, 2022
eda9e45
Bump types-pyyaml from 6.0.8 to 6.0.9 (#791)
dependabot[bot] Jul 4, 2022
59fa144
[#681] add documentation on fideslog use (#751)
conceptualshark Jul 5, 2022
3fe9dfa
Fideslib models (#700)
sanders41 Jul 5, 2022
e9d044b
660 Add support for multiple statuses to be selected for filtering su…
chriscalhoun1974 Jul 5, 2022
ce471af
Resolve issue with MyPy seeing files in fidesops as missing imports (…
sanders41 Jul 5, 2022
e6a23d5
249 saas connector zendesk ticket erasure (#775)
Jul 6, 2022
d9b8eae
Fixing `check-migration` command (#806)
galvana Jul 6, 2022
db326b3
Fix issue requiring separate install of snowflake-connector-python (#…
sanders41 Jul 6, 2022
c5c3084
513 - [Admin UI] Update Subject Request status filter to be a multise…
chriscalhoun1974 Jul 6, 2022
511835b
706 Adds SaaS connection type to SaaS yaml config (#748)
eastandwestwind Jul 6, 2022
f493e55
Make `worker` node optional (#770)
Jul 6, 2022
509c641
GET Available Connectors [#706] (#768)
pattisdr Jul 6, 2022
01670fd
Endpoint: Return Secrets for a Connector Type [#753] (#795)
pattisdr Jul 6, 2022
5f509a5
Add fixture to clear tables between test (#680)
sanders41 Jul 7, 2022
d05eb2c
Replace user authentication routes with fideslib routes (#811)
sanders41 Jul 7, 2022
a23d77e
test fixing publish_docs ci action (#818)
eastandwestwind Jul 7, 2022
8ed1c94
Update Celery config defaults (#808)
Jul 7, 2022
88561ea
Bump next-auth from 4.5.0 to 4.9.0 in /clients/privacy-center (#823)
dependabot[bot] Jul 7, 2022
1989518
Bump fideslib to handle base64 encoded password (#820)
sanders41 Jul 7, 2022
311a196
update local deployment for serving the ui [#644] (#827)
conceptualshark Jul 7, 2022
a6b91e5
Skip Masking of Uvicorn Logs [#766] (#831)
pattisdr Jul 7, 2022
4efd217
832 - Create new user gives HTTP 422 Unprocessable Entity exception (…
chriscalhoun1974 Jul 8, 2022
cf3cbaf
[Admin UI] Change Login Page Wording (#774)
RobertKeyser Jul 8, 2022
2ef3cf1
Fix bug in client with no scopes (#830)
sanders41 Jul 8, 2022
690f6a9
599 clipboard icon (#838)
eastandwestwind Jul 8, 2022
66750ff
adds concurrency to unsafe check jobs (#835)
Jul 8, 2022
e0587b1
Reduce docker image size (#846)
sanders41 Jul 11, 2022
2996bfc
[#743] Store provided identity data in application database (#834)
Jul 11, 2022
3528124
Bump faker from 13.14.0 to 13.15.0 (#848)
dependabot[bot] Jul 11, 2022
662ad95
Bump unidecode from 1.2.0 to 1.3.4 (#849)
dependabot[bot] Jul 11, 2022
5997a9a
Update fastapi-pagination[sqlalchemy] requirement (#852)
dependabot[bot] Jul 11, 2022
aedf2c1
Bump black from 22.3.0 to 22.6.0 (#855)
dependabot[bot] Jul 11, 2022
8175ffe
Updating SaaSType enum (#857)
galvana Jul 11, 2022
14eed39
Serve UI from root (#720)
TheAndrewJackson Jul 12, 2022
33b09ca
Refactor user management UI code (#839)
allisonking Jul 12, 2022
eaf5578
Search for `PrivacyRequest` based on hashed identity [#765] (#847)
Jul 12, 2022
51f42f5
documentation reorganization and page standardization (#858)
conceptualshark Jul 12, 2022
c114673
Fix `create_test_data` (#862)
sanders41 Jul 13, 2022
e487a43
Bump pre-commit from 2.9.3 to 2.20.0 (#853)
dependabot[bot] Jul 13, 2022
6e6011b
Return persisted identities in `get_request_status` view (#860)
Jul 13, 2022
5f75606
671 - [Datastore Management] Include Icon with datastore connection (…
chriscalhoun1974 Jul 13, 2022
43e4134
Populate dataset (#844)
galvana Jul 14, 2022
842cd96
Correct test name for mypy in safe_pr_checks.yml (#875)
sanders41 Jul 14, 2022
8e106c2
Adds `celery.toml` for loading custom Celery config [#821] (#865)
Jul 15, 2022
a8d8915
add celery configuration to docs (#872)
conceptualshark Jul 15, 2022
f28888d
v1.6.2 Release Checklist (#881)
Jul 15, 2022
85c1495
splits IMAGE_NAME into COMPOSE_SERVICE_NAME for docker compose servic…
Jul 15, 2022
03b01b8
belated changelog push (#885)
Jul 15, 2022
bb4ea2f
Move root-level docker files into docker/ subdir (#877)
ThomasLaPiana Jul 16, 2022
2f38ec1
745 - [Datastore Management] Keep datastore cards in 1/3 screen patte…
chriscalhoun1974 Jul 18, 2022
19d66d7
793 upgrade password hash (#876)
TheAndrewJackson Jul 18, 2022
2bf7481
Feat: Vault for secrets (#869)
eastandwestwind Jul 18, 2022
246539f
Bump pandas from 1.3.3 to 1.4.3 (#896)
dependabot[bot] Jul 18, 2022
61f4e54
Add dependabot label to dependabot PRs (#898)
sanders41 Jul 18, 2022
993f4f3
[SaaS Connector] Salesforce (erasure) (#888)
galvana Jul 18, 2022
a73e138
252 saas connector sendgrid (#883)
Jul 19, 2022
3ee1eca
747 - Users should be able to click on the full field of a dropdown-t…
chriscalhoun1974 Jul 20, 2022
b37de68
Bump types-redis from 4.3.2 to 4.3.4 (#895)
dependabot[bot] Jul 20, 2022
3460c4b
Adds saas config base info to connection config responses (#904)
eastandwestwind Jul 20, 2022
6608e22
Adding privacy_request_id placeholder (#911)
galvana Jul 20, 2022
0f12f97
Bump mypy from 0.961 to 0.971 (#914)
dependabot[bot] Jul 21, 2022
32f0392
Bump pydash from 5.0.2 to 5.1.0 (#920)
dependabot[bot] Jul 21, 2022
d7c3979
Update boto3 requirement from ~=1.18.14 to ~=1.24.34 (#917)
dependabot[bot] Jul 21, 2022
410d838
Bump dask from 2022.6.1 to 2022.7.0 (#915)
dependabot[bot] Jul 21, 2022
cb8777a
Fix integration set up scripts for postgres and mariadb - casing has …
pattisdr Jul 21, 2022
3a63dba
zendesk and salesforce connection docs (#908)
conceptualshark Jul 21, 2022
bfe562d
Adobe Campaign access and erasure (#905)
galvana Jul 22, 2022
e6788c7
Updated tutorial to match latest fidesdemo (#772)
daveqnet Jul 22, 2022
4a1d1ed
Correct build arg variable name (#925)
sanders41 Jul 22, 2022
8c01ba5
Default `FIDESOPS__ADMIN_UI__ENABLED` to `True` (#936)
Jul 25, 2022
fd4081e
Update python docker base image from slim-buster to slim-bullseye (#928)
sanders41 Jul 25, 2022
04efae2
Update boto3 requirement from ~=1.24.34 to ~=1.24.36 (#939)
dependabot[bot] Jul 25, 2022
1f67e15
Bump faker from 13.15.0 to 13.15.1 (#941)
dependabot[bot] Jul 26, 2022
705d437
Bump types-ujson from 5.2.0 to 5.4.0 (#947)
dependabot[bot] Jul 26, 2022
59b8aa8
Add db vs saas to connection type api (#937)
eastandwestwind Jul 26, 2022
cb0dfe9
Use Nox as the build tool instead of Make (#919)
ThomasLaPiana Jul 26, 2022
ef28958
863 - Retry a DSR (FE) (#938)
chriscalhoun1974 Jul 26, 2022
70d962e
Update docs docker base image from slim-buster to slim-bullseye (#949)
daveqnet Jul 26, 2022
fcf3333
Experimenting with fixes for the failing MSSQL CI tests (#918)
sanders41 Jul 26, 2022
f2a1211
Delete custom GitHub issue templates (#955)
NevilleS Jul 27, 2022
12d5eb7
Bump sqlalchemy-redshift from 0.8.8 to 0.8.10 (#940)
dependabot[bot] Jul 27, 2022
031e2b8
Move tests into an "ops" subdir (#935)
ThomasLaPiana Jul 27, 2022
ea8bd4d
Dispatch a repository event on new published releases (#945)
PSalant726 Jul 27, 2022
c8ba158
Reduce # of clients connected to the application db [#810] (#944)
pattisdr Jul 27, 2022
4e2f59e
enable worker by default in our dockerfile (#958)
Jul 27, 2022
7cfabc6
add extra steps to make clean (#767)
Jul 27, 2022
9276492
Push `dev` image on pushes to `main` (#956)
ThomasLaPiana Jul 28, 2022
45d1675
Move Client Code into an `ops` subdir (#964)
ThomasLaPiana Jul 28, 2022
56d7494
Bump gitpython from 3.1 to 3.1.27 (#971)
dependabot[bot] Jul 28, 2022
4b72d84
Fix the `nox -s dev` command not spinning up the webserver (#959)
ThomasLaPiana Jul 28, 2022
9eb0994
[#927, #929, #930] sendgrid, adobe, outreach connector docs (#951)
conceptualshark Jul 28, 2022
a5302bb
Bump sqlalchemy-utils from 0.37.8 to 0.38.3 (#968)
dependabot[bot] Jul 29, 2022
a7f90bc
Bump pyodbc from 4.0.32 to 4.0.34 (#980)
dependabot[bot] Jul 29, 2022
89897ed
Bump dask from 2022.7.0 to 2022.7.1 (#967)
dependabot[bot] Jul 29, 2022
47c0c4d
Bump alembic from 1.8.0 to 1.8.1 (#989)
dependabot[bot] Jul 29, 2022
dd9bb37
fix erroneous values in the Outreach config (#988)
Jul 29, 2022
f4727c8
Add documentation for new nox commands (#981)
conceptualshark Aug 1, 2022
1f02e3c
Bump types-toml from 0.10.7 to 0.10.8 (#998)
dependabot[bot] Aug 1, 2022
98c7056
Bump fideslog from 1.2.1 to 1.2.2 (#996)
dependabot[bot] Aug 1, 2022
2024435
Added Choose your connection feature (#987)
chriscalhoun1974 Aug 1, 2022
0952c6c
saas request overrides (#986)
adamsachs Aug 1, 2022
bb063db
Update OAuth strategy to be able to perform local testing (#962)
galvana Aug 1, 2022
7c5cbc2
Update boto3 requirement from ~=1.24.36 to ~=1.24.42 (#1001)
dependabot[bot] Aug 2, 2022
274a7a1
Bump fastapi[all] from 0.78.0 to 0.79.0 (#1002)
dependabot[bot] Aug 2, 2022
5f648af
update config reference to use lowercase values (#952)
conceptualshark Aug 2, 2022
f98b302
Added Auth0 Connector (#991)
Aug 3, 2022
fc82aad
add pagination back to connection types endpoints (#1019)
Aug 3, 2022
4fc5386
Subject Request Events and Logs Section (#1018)
TheAndrewJackson Aug 3, 2022
89c6694
First draft of OAuth documentation (#963)
galvana Aug 3, 2022
43e144b
Send Errored Requests / Reprocessed Requests Info to FidesLog [#754] …
pattisdr Aug 3, 2022
0cd3a03
Update the compose file and workflows to expect an already-built imag…
ThomasLaPiana Aug 3, 2022
374bead
Create `AuditLog` on privacy request approval (#1038)
TheAndrewJackson Aug 5, 2022
91bcc5a
Updating Salesforce to use OAuth2 authentication code flow (#1039)
galvana Aug 5, 2022
1676aa1
Removing saas_config.toml (#1043)
galvana Aug 8, 2022
b8d95b6
Bump types-pyyaml from 6.0.9 to 6.0.11 (#1047)
dependabot[bot] Aug 8, 2022
100bf10
Bump docker/build-push-action from 2 to 3 (#1044)
dependabot[bot] Aug 8, 2022
0e16ebc
Bump dask from 2022.7.1 to 2022.8.0 (#1046)
dependabot[bot] Aug 8, 2022
05540a9
Update boto3 requirement from ~=1.24.42 to ~=1.24.46 (#1045)
dependabot[bot] Aug 8, 2022
ca24914
Refactor static checks to run outside of Docker (#1053)
ThomasLaPiana Aug 9, 2022
0871f69
Create finished audit log for privacy requests (#1040)
TheAndrewJackson Aug 9, 2022
4b657c0
Update quickstart to use docker-compose and docker network for all co…
NevilleS Aug 9, 2022
dce5807
Bump snowflake-sqlalchemy from 1.3.2 to 1.3.4 (#1051)
dependabot[bot] Aug 9, 2022
86637cf
updates changelog (#1063)
Aug 10, 2022
db713b1
Reorganize application code (#1058)
ThomasLaPiana Aug 11, 2022
d7a2e20
Patch versioneer to allow editable installs (#1070)
sanders41 Aug 12, 2022
7e77d0c
Preserving headers in SaaSRequestParams during pagination (#1069)
sadaqatullah Aug 12, 2022
8c8ec62
Add setuptools to dev-requirements to fix versioneer error (#1072)
sanders41 Aug 12, 2022
91e5535
Bump fideslang to 1.1.0 (#890)
ThomasLaPiana Aug 12, 2022
17fe397
797 datadog (#1060)
sadaqatullah Aug 12, 2022
f7db520
515 SaaS connector Logi ID (#1074)
Aug 12, 2022
c71e865
Combine Execution and Audit Logs in Request Status Endpoint [#1024] (…
pattisdr Aug 15, 2022
7adc3ac
Notify fidesdemo on new releases (#1075)
PSalant726 Aug 15, 2022
fb96d4f
Bump pytest from 6.2.2 to 7.1.2 (#1081)
dependabot[bot] Aug 15, 2022
e926c9c
Bump faker from 13.15.1 to 14.0.0 (#1080)
dependabot[bot] Aug 15, 2022
0066360
Bump actions/setup-python from 3 to 4 (#1078)
dependabot[bot] Aug 15, 2022
4c5e1ef
Bump fideslog from 1.2.2 to 1.2.3 (#1079)
dependabot[bot] Aug 15, 2022
4ce5dd2
Bump types-urllib3 from 1.26.15 to 1.26.22 (#1084)
dependabot[bot] Aug 15, 2022
40c2a76
Bump fideslang from 1.1.0 to 1.2.0 (#1085)
dependabot[bot] Aug 15, 2022
7360885
Update README.md
ThomasLaPiana Aug 16, 2022
9c662aa
Merge remote-tracking branch 'fidesops/main' into ThomasLaPiana-fides…
ThomasLaPiana Aug 17, 2022
171152a
fix the frontend pr checks
ThomasLaPiana Aug 17, 2022
e402706
pip install works, nox command list works
ThomasLaPiana Aug 17, 2022
b990163
fix the dockerfile biuld failure
ThomasLaPiana Aug 17, 2022
b0a43bb
install optional requirements
ThomasLaPiana Aug 17, 2022
d70abcd
copy pasta the ops files into the api subdir
ThomasLaPiana Aug 17, 2022
4c7f6be
ctl unit tests should be passing now
ThomasLaPiana Aug 17, 2022
0abf589
fix the config
ThomasLaPiana Aug 17, 2022
b0b56eb
update code checks to use the correct image name
ThomasLaPiana Aug 17, 2022
9f0b5be
update the github workflows
ThomasLaPiana Aug 18, 2022
0692537
update the github workflows
ThomasLaPiana Aug 18, 2022
5b0df3b
add an option to drop volumes when doing a teardown
ThomasLaPiana Aug 18, 2022
32f11f4
fix the noxfile volume teardown
ThomasLaPiana Aug 18, 2022
7e34261
static checks don't need to wait for Build
ThomasLaPiana Aug 18, 2022
dd7547c
Merge remote-tracking branch 'origin/main' into ThomasLaPiana-fidesop…
ThomasLaPiana Aug 18, 2022
876ad44
fix a nox bug where the UI wasn't being built for the dev container
ThomasLaPiana Aug 18, 2022
503bce8
ctl integration tests passing
ThomasLaPiana Aug 18, 2022
3d400d5
remove the MANIFEST.in from the .gitignore
ThomasLaPiana Aug 18, 2022
c4c9c12
use "docker compose" instead of "docker-compose" in Nox to be able to…
ThomasLaPiana Aug 18, 2022
7c94679
run isort
ThomasLaPiana Aug 18, 2022
c85e80a
run black
ThomasLaPiana Aug 18, 2022
358789a
add fidesops to the docker compose file
ThomasLaPiana Aug 19, 2022
ef49f95
mega path update fidesops -> fidesctl.api
ThomasLaPiana Aug 19, 2022
32314e8
fidesops can run
ThomasLaPiana Aug 19, 2022
fa88fa7
update all of the test paths
ThomasLaPiana Aug 19, 2022
3602e0e
fix fidesops config issue
ThomasLaPiana Aug 19, 2022
2b02918
fix create_superuse imports
ThomasLaPiana Aug 19, 2022
6814336
update nox to allow running fidesops with a shell
ThomasLaPiana Aug 19, 2022
b025ff6
rename the policy class to avoid a clash
ThomasLaPiana Aug 22, 2022
a85ecb1
move the fidesops migration files into a single dir with ctl
ThomasLaPiana Aug 22, 2022
cfca20f
fix merged migration conflicts
ThomasLaPiana Aug 22, 2022
de7f940
remove remaining ops alembic files
ThomasLaPiana Aug 22, 2022
33476ca
fix small database connection issues
ThomasLaPiana Aug 22, 2022
288797d
migrate ops_main to use ctl database functions
ThomasLaPiana Aug 22, 2022
b73c988
fix the superuser create script
ThomasLaPiana Aug 22, 2022
1a37bcc
add a tweak to the fidesops conftest
ThomasLaPiana Aug 22, 2022
51b741c
run isort
ThomasLaPiana Aug 22, 2022
3a3e0c3
run black
ThomasLaPiana Aug 22, 2022
62498d5
get pylint to pass
ThomasLaPiana Aug 22, 2022
91b8b6b
fix fidesops/fidesctl workflow bugs
ThomasLaPiana Aug 22, 2022
1309c78
fix more static checks
ThomasLaPiana Aug 22, 2022
db14361
fix mypy settings
ThomasLaPiana Aug 22, 2022
270503e
fix mypy issues
ThomasLaPiana Aug 22, 2022
4ae136f
remove extra dependencies
ThomasLaPiana Aug 22, 2022
7957051
update static checks to use python 3.9
ThomasLaPiana Aug 22, 2022
fc9f0da
start up the app before running fidesctl tests
ThomasLaPiana Aug 22, 2022
1c819aa
isort things
ThomasLaPiana Aug 22, 2022
083a3bf
remove migration check
ThomasLaPiana Aug 22, 2022
d25e297
add the fidesops worker command
ThomasLaPiana Aug 22, 2022
a2dcc95
Initial Fidesops Merge (#994)
ThomasLaPiana Aug 23, 2022
21b3d6f
Merge branch 'unified-fides' of https://github.com/ethyca/fides into …
ThomasLaPiana Aug 23, 2022
001f7aa
Merge remote-tracking branch 'origin/main' into unified-fides
ThomasLaPiana Aug 23, 2022
7e70741
Update package name for unified fides (#1015)
ThomasLaPiana Aug 24, 2022
8733454
Unify ops/ctl web applications (#1016)
ThomasLaPiana Aug 31, 2022
fc88582
Unify Ops/Ctl configuration (#1029)
ThomasLaPiana Sep 1, 2022
545f6a4
Merge project changes again (#1039)
ThomasLaPiana Sep 2, 2022
c239b0a
Update Ops Integration Tests (#1044)
ThomasLaPiana Sep 6, 2022
772e1ae
Update workflows to push unified artifacts (#1064)
ThomasLaPiana Sep 12, 2022
1a4bb0a
Merge Ops/Ctl docs (#1049)
ThomasLaPiana Sep 12, 2022
2698308
Add optional-requirements to unified fides (#1066)
ThomasLaPiana Sep 13, 2022
92c3439
Make CLI startup logging cleaner (#1079)
ThomasLaPiana Sep 15, 2022
c54f2cd
Unified admin UI (#1063)
TheAndrewJackson Sep 19, 2022
4762b72
Test multiple Python versions (#1081)
ThomasLaPiana Sep 19, 2022
9bbd23f
Annotate Unified Fides (#1070)
ThomasLaPiana Sep 20, 2022
ff72afa
Combine safe and unsafe checks into a single worfklow (#1105)
ThomasLaPiana Sep 22, 2022
f33926f
Another big upstream merge (#1111)
ThomasLaPiana Sep 23, 2022
3b7891e
refactor the unified-docs experience (#1109)
conceptualshark Sep 23, 2022
8150a4b
Add a deploy command to fides
ThomasLaPiana Sep 26, 2022
7ac1072
add functions for checking docker and docker compose versions
ThomasLaPiana Sep 26, 2022
b77f7a1
add the deploy command
ThomasLaPiana Sep 26, 2022
51624da
fix version checks
ThomasLaPiana Sep 26, 2022
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
Prev Previous commit
Next Next commit
Another big upstream merge (#1111)
* Prevent modifying default taxonomy fields (#990)

* Add is_default field to taxonomy sql models (#976)

* Add is_default field to taxonomy sql models

* Update changelog

* Autoformat alembic migration file

* Update dataset.yml with is_default

* Bump fideslang version

Update changelog

Autoformat alembic migration file

Update dataset.yml with is_default

Bump fideslang version

* Prevent modifying default taxonomy on update

Add docstring

* Move is_default check to routes/crud.py

Revert database/crud.py changes

* Handle forbidding when given a list of fides keys

* Add test

* Handle attempting to modify is_default field

* Update changelog

* Debug failing test

* Add another print debugging stmt

* Revert "Add another print debugging stmt"

This reverts commit 527bd03.

* Revert "Debug failing test"

This reverts commit daf3ca8.

* Scope resources_dict to function

* Clean up changelog

* Allow modifying defaults but not is_default

* Handle case where checking for new upsert

* Refactor to put tests in a class

* Handle upserting is_default

* Delete taxonomy UI (#1006)

* Add delete call to slices

* Hook up delete button

* Add result handling

* Only show delete on nodes without children

* Add tests for delete

* Update changelog

* Render action buttons as a prop to AccordionTree

* Fix import consistency

* Rename onEdit and onDelete

* Clear edit entity on delete

* Use TreeNode type

* Update cypress fixtures (#1022)

* Update fixtures

* Update tests based on updated fixtures

* Add taxonomy entity form (#1019)

* Rename data-categories.slice --> taxonomy.slice

* Add active taxonomy type to store

* Add create mutation to slices

* Hook up create to form

* Fixup form UX

* Derive parent key from fides key

* Conditionally render parent key field

* Add tests for adding taxonomy entities

* Clean up

* Update changelog

* Simplify setting add state

* Add test for showing either add or create form

* Derive isCreate from status of fides key

* Add check for is_default before rendering delete button (#1023)

* Add check for is_default before rendering delete button

* Update changelog

* Update test data to include is_default

* Add cypress tests

* Fix mypy error (#1030)

* Fix mypy error

* Update CHANGELOG

* Remove unused import

Co-authored-by: Paul Sanders <pau@ethyca.com>

* Custom label for user defined taxonomy fields (#1027)

* Add renderTag prop

* Add cypress tests

* Update changelog

* Add boolean fields and use them in taxonomy forms (#1028)

* Add CustomRadioGroup as a form input

* Use new radio group input for taxonomy forms

* Update extra form fields prop to be a function

* Cast string boolean back to real boolean

* Tests

* Update changelog

* Clean up some type comparisons

* Revert === undefined since the fields can actually be null

* remove exclude_unset=True to return clean diff (#1026)

* remove exclude_unset=True to return clean diff

* changelog

* don't stop the test suite when there is a failure

Co-authored-by: Thomas <thomas.lapiana+github@pm.me>

* Set pydantic < 1.10.0 to fix CI issues with fideslang functions (#1045)

Should be able to revert after fideslang figures out why the latest
pydantic causes failures

* [fidesctl-plus #78] cross app navigation (#1037)

* fctl/nav: Move NavBar into nav directory

* fctl/nav: Decouple Header and NavBar

* fctl/nav: Extract NavButton presentational component

* fctl/nav: Extract NavLink component

* fctl/zones: Generic utility for configuring app zones

This change brings in some zone handling code from fidesctl-plus and makes it more generic so that
we can use the same pattern in both apps.

* fctl/nav: Use zone-aware nav links

* fctl/nav: Replace Jest nav tests with Cypress tests

This change switches moves our nav routing tests into Cypress instead of Jest.
The React test renderer was having trouble integrating with Next's dynamic import,
which was going to require a complex solution. Instead, by moving the nav tests into
Cypress we can test the real router state without relying on mocks.

This will prove even more useful in a later commit when we update what links are available
based on whether the API says we are in fidesctl-plus.

* fctl/features: Query /plus/health API to determine if Plus features should be shown

* Update changelog

* 1.8.3 (#1050)

* Prepare changelog for 1.8.3 release

* Fixup misattributed changelog items

* Add fix for pydantic version

* noxfiles: Session for building fidesctl python package (#1047)

* noxfiles: Session for building fctl python package

* fix a pylint error

Co-authored-by: Thomas <thomas.lapiana+github@pm.me>

* [942] fctl/api: Serve static files using route maps (#1046)

* fctl/api: Adapt generate_route_file_map from Ops and unit test it

* fctl/api: Serve static files using route maps

This includes both packaged (pip installed) and local build files, depending on
what is available.

* Update changelog

* Fix truncated evaluation error messages (#1053)

* Fix truncated evaluation error messages

* add a test for the evaluations output

* fix mypy error

* update changelog

* Bump next-auth from 4.9.0 to 4.10.3 in /clients/ctl/admin-ui (#1025)

Bumps [next-auth](https://github.com/nextauthjs/next-auth) from 4.9.0 to 4.10.3.
- [Release notes](https://github.com/nextauthjs/next-auth/releases)
- [Changelog](https://github.com/nextauthjs/next-auth/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nextauthjs/next-auth/compare/next-auth@v4.9.0...next-auth@v4.10.3)

---
updated-dependencies:
- dependency-name: next-auth
  dependency-type: direct:production
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Allison King <allisonjuliaking@gmail.com>

* Cascade delete taxonomy children (#1042)

* Configure pytest for async functions

* Refactor FixtureRequest so it can be shared across tests

* Add test for deleting children taxonomy

* Add logic to cascade delete

* Update changelog

* Update UI to allow deleting parent taxonomy fields with a warning

* Clean up

* Update cypress tests

* Initial systems management page (#1054)

* Rename SystemsTable to SystemsGrid

* Add BorderGrid component to abstract out grid

* Build out SystemCard

* Add search feature

* Pull SystemCard out into its own component

* Add cypress tests for system management page

* Update changelog

* Fix nav bar test

* 1.8.4 (#1061)

* update changelog

* remove phantom bullet point

* Alter taxonomy upsert behavior (#1040)

* Configure pytest for async functions

* Add tests for changing updating default taxonomy

* Change upsert behavior to append

* Update changelog

* Address PR comments

* Replace upsert with create

* Remove unused import

* Remove disabled Nav Buttons (#1067)

* Update NavBar.tsx

* remove "more" from the navbar

* fix a linting error

* remove cypress tests for disabled links

* Form to add a system via yaml (#1062)

* Add new system page

* Refactor YamlForm so it can be reused

* Fixup some types in existing system slice

* Add SystemYamlForm

* Add cypress test for system

* Update changelog

* Fix empty state and remove ellipsis for now

* Remove tests on more actions button

* Move changelog items to Unreleased

* ui/dataset: "Classify" toggle for fidesctl-plus (#1057)

* ui/dataset: Spacing improvements for generate form

* ui/inputs: CustomSwitch component for switches

* ui/dataset: "Classify" toggle for fidesctl-plus

* ui/dataset: Cypress test when classify is available

* Update changelog

* [1058] ui/dataset: Confirmation modal to kick off classify (#1069)

* ui/featuers: Extract Plus API into its own slice

* ui/dataset: Refactor dataset creation chain of mutations

This should make it easier to extend the sequence of API calls to add Classify.
Before, the structure made it hard to identify the orders in which mutations were called,
and which object was the generated (temporary) vs persisted dataset. Now the generate
and create functions return their results or an error string.

I also made a change to how the error message is shown: instead of always assigning
the message to the form's URL field, it's shown in a error toast. Now that we have
multiple fields on this form, it wasn't clear the URL is going to be responsible
for any errors.

* ui/plus: Mock implementation of the classify API

* ui/dataset: Request classify if toggled

* ui/dataset: Confirmation modal to kick off classify

* ui/dataset: Cypress test for starting classify

* ui/dataset: Clear active dataset on un-mount instead of mount

This change makes it possible for the classify flow to highlight the newly-created
dataset when we navigate back to the table. Previously, the active dataset was cleared
by index page, which made preserving the active set between routes impossible. Now
we only clear when we leave a datset's view, which gives us the same experience and
the new feature.

* Update changelog

* Scaffold manual system flow (#1068)

* Refactor generate type to boolean

* Add ManualSystemFlow

* Add ConfigureSteps

* Make button bigger

* Update changelog

* Remove UI features for WIP elements

* [1073] ui/dataset: Show status badge for datasets using classification results (#1074)

* ui/plus: Classifications grouped by dataset fides key

* ui/dataset: Show status badge for datasets using classification results

* ui/dataset: Cypress tests for classified table

* Update changelog

* ui/state: Deduplicate query results that were being stored in state slices (#1083)

* ui/dedup-state: Systems unused

* ui/dedup-state: Datasets unused

* ui/dedup-state: Organization hydrate unused

* ui/dedup-state: Taxonomy DataCategories query

* ui/dedup-state: DataSubjects query

* ui/dedup-state: DataQualifiers query

* ui/dedup-state: DataUses query

* Fix header help link (#1078)

* Fix header help link

* update changelog

* Reuse config wizard forms for adding a system (#1072)

* Consolidate tooltips in DescribeSystemsForm

* Add form to manual system flow

* Add validation schema for DescribeSystemsForm

* Fix onBlur handlers of select fields

* Refactor DescribeSystemsForm

* Refactor PrivacyDeclarationForm

* Continue refactoring PrivacyDeclarationForm

* Refactor ReviewSystemForm

* Refactor SuccessPage

* Update changelog

* Refactor ReviewSystemForm to use a grid ReviewItem

* Add cypress test for flow

* Try to fix flaky test

* Ensure we stub taxonomy items

* Refactor PrivacyDeclarationAccordion to match designs more

* Fix adding another declaration when name field is blank

* Rename SuccessPage --> SystemRegisterSuccess

* Pass system object through props

* Update tests

* UI to delete a system (#1085)

* Implement delete system feature

* Add NotFoundError

* Add cypress tests

* Update changelog

* Refactor errors to ErrorDetails

* Separate 'next' and 'add' logic in PrivacyDeclarationForm (#1086)

* Separate continue and add logic

* Update tests

* Update changelog

* New fields on system forms (#1082)

* Extend DescribeSystemsForm

* Extend PrivacyDeclarationForm

* Add joint controller and data protection impact assessment

* Move system dependency field to abridged form

* Prepare data protection impact assessment for payload

* Add cypress tests

* Extend ReviewSystemForm

* Add tests for extended review form

* Fix adding another declaration when name field is blank

* Rename SuccessPage --> SystemRegisterSuccess

* Pass system object through props

* Update tests

* Update changelog

* Refactor ReviewSystemForm

* Move config wizard system forms to system directory (#1097)

* Move system forms to system directory

* Refactor form layout components into its own file

* Rename files from form --> step

* Update changelog

* ui/datasets: Refactor selectors (#1087)

* ui/dataset: Track dataset by fides key instead of object copy and nulls

Previously we've stored a copy of the dataset returned by the get-by-key query,
but only every use its key property. With this change we only store the key and
use the object from the query directly.

As part of this, I also converted a lot of `null` to `undefined`. There different
opinions on this, but undefined is generally more useful in a TS codebase because:

1. It plays nicely with optional function arguments.
2. It can be represented by a single question mark in interfaces. (See the State
   changes in this commit.)
3. It doesn't have null's `typeof null === "object"` confusion.

* ui/dataset: Single state for edit drawer

* ui/dataset: Extract collection lookups to selector

* ui/dataset: Extract field lookups to selector

* ui/dataset: Extract field types into Cell component

* ui/cypress: Consistent test fides key

* Bump fideslang to 1.3.0 (#1103)

* Bump fideslang to 1.3.0

* Add `egress` and `ingress` to `ctl_systems`

* Update `CHANGELOG.md`

* Prepare 1.8.5 release (#1107)

* Bump fideslang to 1.3.0

* Add `egress` and `ingress` to `ctl_systems`

* Update `CHANGELOG.md`

* Prepare `CHANGELOG.md` for v1.8.5

* upgrade pymysql to version 1.0.2 (#1094)

* Edit system UI (#1096)

* Set activeSystem in system.slice

* Allow form fields to take undefined

* Extend DescribeSystemForm to be able to edit

* Allow editing system from its card

* Update changelog

* Pull the form part of privacy declaration into its own component

* Further refactor PrivacyDeclarationForm to support editing

* Pull common intercepts out into a stubs file

* Add cypress test for editing

* Reserve dataset_references for unabridged forms

* Make sure not to override privacy declaration

* Explain allowing undefined for form inputs

* Change routing behavior to go back on cancel

* Fix error message

* Update CHANGELOG.md

* included more changes from fidesctl

* fix static checks

* manual updates from ctl UI

* formatting

* change line endings to fix prettier error

* fix docker build issue

* merge alembic heads for fidesctl merge and get tests parsing

* don't include the worker as a dependency for docker-compose fides

* remove worker flag from default fides service

* fix static checks

* get webserver running again

* reenable the worker for the docker-compose service

* enable redis for the compose service

* clean command is absolute in its destruction

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Allison King <allisonjuliaking@gmail.com>
Co-authored-by: Paul Sanders <psanders1@gmail.com>
Co-authored-by: Paul Sanders <pau@ethyca.com>
Co-authored-by: Steve Murphy <steven.d.murphy@gmail.com>
Co-authored-by: Sebastian Sangervasi <2236777+ssangervasi@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Phil Salant <PSalant726@users.noreply.github.com>
  • Loading branch information
8 people authored Sep 23, 2022
commit f33926f286545ac93f61fa9c6bcb1a5ff7a621ea
9 changes: 5 additions & 4 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ src/fides.egg-info/
src/fides/ui-build/
src/ui-build/

# Frontend
**/node_modules
**/.next


# Ignore Python-Specific Files
.mypy_cache/
.nox/
Expand Down Expand Up @@ -34,12 +39,8 @@ docs/
# Ignore dev files
.github/
.devcontainer/
**/node_modules/

# Ignore cypress artifacts
**/videos/
**/screenshots/
clients/ops/admin-ui/node_modules
clients/ops/admin-ui/.next
clients/privacy-center/.next
.DS_Store
18 changes: 18 additions & 0 deletions .fides/db_dataset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,15 @@ dataset:
data_categories:
- system.operations
data_qualifier: aggregated.anonymized.unlinked_pseudonymized.pseudonymized.identified
retention: null
fields: null
- name: egress
description: null
data_categories:
- system.operations
data_qualifier: aggregated.anonymized.unlinked_pseudonymized.pseudonymized.identified
retention: null
fields: null
- name: fides_key
data_categories:
- system.operations
Expand All @@ -666,6 +675,15 @@ dataset:
data_categories:
- system.operations
data_qualifier: aggregated.anonymized.unlinked_pseudonymized.pseudonymized.identified
retention: null
fields: null
- name: ingress
description: null
data_categories:
- system.operations
data_qualifier: aggregated.anonymized.unlinked_pseudonymized.pseudonymized.identified
retention: null
fields: null
- name: joint_controller
description: Encrypted contact information for a joint controller (name, address,
email, phone)
Expand Down
2 changes: 0 additions & 2 deletions .fides/fides.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ port = 6379
charset = "utf8"
default_ttl_seconds = 604800
db_index = 0
enabled = true
ssl = false
ssl_cert_reqs = "required"

Expand All @@ -48,7 +47,6 @@ task_retry_backoff = 1
subject_identity_verification_required = false
task_retry_count = 0
task_retry_delay = 1
worker_enabled = false

[admin_ui]
enabled = true
70 changes: 68 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,77 @@ The types of changes are:
* `Fixed` for any bug fixes.
* `Security` in case of vulnerabilities.

## [Unreleased](https://github.com/ethyca/fides/compare/1.8.2...main)
## [Unreleased](https://github.com/ethyca/fides/compare/1.8.5...main)

### Added

* Added more taxonomy fields that can be edited via the UI [#1000](https://github.com/ethyca/fides/pull/1000)
* Dataset generation enhancements using Fides Classify for Plus users:
* Added toggle for enabling classify during generation. [#1057](https://github.com/ethyca/fides/pull/1057)
* Initial implementation of API request to kick off classify, with confirmation modal. [#1069](https://github.com/ethyca/fides/pull/1069)
* Initial Classification & Review status for generated datasets. [#1074](https://github.com/ethyca/fides/pull/1074)
* System management UI:
* New page to add a system via yaml [#1062](https://github.com/ethyca/fides/pull/1062)
* Skeleton of page to add a system manually [#1068](https://github.com/ethyca/fides/pull/1068)
* Refactor config wizard system forms to be reused for system management [#1072](https://github.com/ethyca/fides/pull/1072)
* Add additional optional fields to system management forms [#1082](https://github.com/ethyca/fides/pull/1082)
* Delete a system through the UI [#1085](https://github.com/ethyca/fides/pull/1085)
* Edit a system through the UI [#1096](https://github.com/ethyca/fides/pull/1096)

### Changed

* Changed behavior of `load_default_taxonomy` to append instead of upsert [#1040](https://github.com/ethyca/fides/pull/1040)
* Changed behavior of adding privacy declarations to decouple the actions of the "add" and "next" buttons [#1086](https://github.com/ethyca/fides/pull/1086)
* Moved system related UI components from the `config-wizard` directory to the `system` directory [#1097](https://github.com/ethyca/fides/pull/1097)

### Fixed

* Fixed the "help" link in the UI header [#1078](https://github.com/ethyca/fides/pull/1078)

### Security

* Upgraded pymysql to version `1.0.2` [#1094](https://github.com/ethyca/fides/pull/1094)

## [1.8.5](https://github.com/ethyca/fides/compare/1.8.4...1.8.5)

### Changed

* Update fideslang to v1.3.0 [#1103](https://github.com/ethyca/fides/pull/1103)

## [1.8.4](https://github.com/ethyca/fides/compare/1.8.3...1.8.4) - 2022-09-09

### Added

* Initial system management page [#1054](https://github.com/ethyca/fides/pull/1054)

### Changed

* Deleting a taxonomy field with children will now cascade delete all of its children as well. [#1042](https://github.com/ethyca/fides/pull/1042)

### Fixed

* Fixed navigating directly to frontend routes loading index page instead of the correct static page for the route.
* Fix truncated evaluation error messages [#1053](https://github.com/ethyca/fides/pull/1053)

## [1.8.3](https://github.com/ethyca/fides/compare/1.8.2...1.8.3) - 2022-09-06

### Added

* Added more taxonomy fields that can be edited via the UI [#1000](https://github.com/ethyca/fides/pull/1000) [#1028](https://github.com/ethyca/fides/pull/1028)
* Added the ability to add taxonomy fields via the UI [#1019](https://github.com/ethyca/fides/pull/1019)
* Added the ability to delete taxonomy fields via the UI [#1006](https://github.com/ethyca/fides/pull/1006)
* Only non-default taxonomy entities can be deleted [#1023](https://github.com/ethyca/fides/pull/1023)
* Prevent deleting taxonomy `is_default` fields and from adding `is_default=True` fields via the API [#990](https://github.com/ethyca/fides/pull/990).
* Added a "Custom" tag to distinguish user defined taxonomy fields from default taxonomy fields in the UI [#1027](https://github.com/ethyca/fides/pull/1027)
* Added initial support for enabling Fides Plus [#1037](https://github.com/ethyca/fides/pull/1037)
* The `useFeatures` hook can be used to check if `plus` is enabled.
* Navigating to/from the Data Map page is gated behind this feature.
* Plus endpoints are served from the private Plus image.

### Fixed

* Fixed failing mypy tests [#1030](https://github.com/ethyca/fides/pull/1030)
* Fixed an issue where `fides push --diff` would return a false positive diff [#1026](https://github.com/ethyca/fides/pull/1026)
* Pinned pydantic version to < 1.10.0 to fix an error in finding referenced fides keys [#1045](https://github.com/ethyca/fides/pull/1045)

### Fixed

Expand Down
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ ARG PYTHON_VERSION=3.10.6
FROM node:16 as frontend

# Build the admin-io frontend
WORKDIR /fidesops/clients/admin-ui
WORKDIR /fides/clients/admin-ui
COPY clients/admin-ui/ .
RUN npm install
RUN npm run export



#############
## Backend ##
#############
Expand Down Expand Up @@ -99,5 +97,4 @@ RUN python setup.py sdist
RUN pip install dist/ethyca-fides-*.tar.gz

# Copy frontend build over
COPY --from=frontend /fidesops/clients/admin-ui/out/ /fidesops/src/fidesops/build/static/

COPY --from=frontend /fides/clients/admin-ui/out/ /fides/src/fides/ui-build/static/admin
3 changes: 2 additions & 1 deletion clients/admin-ui/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"tabWidth": 2
"tabWidth": 2,
"endOfLine": "lf"
}
103 changes: 103 additions & 0 deletions clients/admin-ui/__tests__/features/common/zones/config.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
import { configureZones, resolveZone } from "~/features/common/zones";

describe("resolveZone", () => {
// Allow mocking and resetting the node env in this test suite.
const env = process.env as { NODE_ENV: string };
afterEach(() => {
env.NODE_ENV = "test";
});

const config = configureZones({
development: {
host: "localhost:3000",
},

zones: [
{
basePath: "/datamap",
development: {
host: "localhost:4000",
},
},
{
basePath: "/no/dev",
},
],
});

describe("Within the root zone", () => {
const basePath = "/";

it("Does not modify a link within the root zone", () => {
env.NODE_ENV = "development";

const link = resolveZone({ config, basePath, href: "/root/route" });
expect(link).toMatchObject({
href: "/root/route",
basePath: "/",
});
});

it("Links to the dev host of another zone", () => {
env.NODE_ENV = "development";

const link = resolveZone({ config, basePath, href: "/datamap" });
expect(link).toMatchObject({
href: "http://localhost:4000/datamap",
basePath: "/datamap",
});
});

it("Does not link to the dev host in production", () => {
env.NODE_ENV = "production";

const link = resolveZone({ config, basePath, href: "/datamap" });
expect(link).toMatchObject({
href: "/datamap",
basePath: "/datamap",
});
});

it("Does not link to the dev host if none is configured", () => {
env.NODE_ENV = "development";

const link = resolveZone({ config, basePath, href: "/no/dev" });
expect(link).toMatchObject({
href: "/no/dev",
basePath: "/no/dev",
});
});
});

describe("Within a sub zone", () => {
const basePath = "/datamap";

it("Strips the base path of the sub-zone", () => {
const link = resolveZone({ config, basePath, href: "/datamap/route" });
expect(link).toMatchObject({
href: "/route",
basePath: "/datamap",
});
});

it("Links to the dev host of the root zone", () => {
env.NODE_ENV = "development";

const link = resolveZone({ config, basePath, href: "/root/route" });
expect(link).toMatchObject({
href: "http://localhost:3000/root/route",
basePath: "/",
});
});

it("Does not link to the dev host in production", () => {
env.NODE_ENV = "production";

const link = resolveZone({ config, basePath, href: "/root/route" });
expect(link).toMatchObject({
href: "/root/route",
basePath: "/",
});
});
});
});
19 changes: 0 additions & 19 deletions clients/admin-ui/__tests__/features/system.slice.test.tsx

This file was deleted.

23 changes: 0 additions & 23 deletions clients/admin-ui/__tests__/features/system.test.tsx

This file was deleted.

33 changes: 0 additions & 33 deletions clients/admin-ui/__tests__/nav.test.tsx

This file was deleted.

Loading