Skip to content

Commit f2403c9

Browse files
Add DeprecationWarnings to fidesctl (#1244)
* Add `DeprecationWarnings` to fidesctl * add a deprecation warning to the CLI * remove analytics ID * add a deprecation warning that gets logged on the server * update changelog * update changelog for final release * Update src/fidesctl/api/main.py Co-authored-by: Steve Murphy <[email protected]> * Update src/fidesctl/cli/__init__.py Co-authored-by: Steve Murphy <[email protected]> Co-authored-by: Steve Murphy <[email protected]>
1 parent 7aa67b8 commit f2403c9

File tree

4 files changed

+22
-7
lines changed

4 files changed

+22
-7
lines changed

.fides/fidesctl.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[database]
2-
server="fidesctl-db"
3-
user="postgres"
4-
password="fidesctl"
5-
port="5432"
6-
db="fidesctl"
7-
test_db="fidesctl_test"
2+
server = "fidesctl-db"
3+
user = "postgres"
4+
password = "fidesctl"
5+
port = "5432"
6+
db = "fidesctl"
7+
test_db = "fidesctl_test"
88

99
[logging]
1010
level = "INFO"

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ The types of changes are:
1515
* `Fixed` for any bug fixes.
1616
* `Security` in case of vulnerabilities.
1717

18-
## [Unreleased](https://github.com/ethyca/fides/compare/1.9.1...main)
18+
## [1.9.2](https://github.com/ethyca/fides/compare/1.9.2...main)
19+
20+
### Deprecated
21+
22+
* Added a deprecation warning for the entire package [#1244](https://github.com/ethyca/fides/pull/1244)
1923

2024
### Added
2125

@@ -60,6 +64,7 @@ The types of changes are:
6064
* Dataset fields table shows categories in the last column. [#1088](https://github.com/ethyca/fides/pull/1088)
6165

6266
### Docs
67+
6368
* Updated the footer links [#1130](https://github.com/ethyca/fides/pull/1130)
6469

6570
### Fixed

src/fidesctl/api/main.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ async def setup_server() -> None:
8080
)
8181

8282
log.bind(api_config=CONFIG.logging.json()).debug("Configuration options in use")
83+
84+
docs_link = "https://ethyca.github.io/fides/"
85+
log.warning(
86+
f"WARNING: 'Fidesctl' has been deprecated and replaced by a more robust 'Fides' tool, which includes existing 'fidesctl' functionality. Run `pip install ethyca-fides` to get the latest version of Fides and visit '{docs_link}' for up-to-date documentation.\n"
87+
)
8388
await configure_db(CONFIG.database.sync_database_uri)
8489

8590

src/fidesctl/cli/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ def cli(ctx: click.Context, config_path: str, local: bool) -> None:
5959
The parent group for the Fidesctl CLI.
6060
"""
6161

62+
docs_link = "https://ethyca.github.io/fides/"
63+
click.secho(
64+
f"WARNING: 'Fidesctl' has been deprecated and replaced by a more robust 'Fides' tool, which includes existing 'fidesctl' functionality. Run `pip install ethyca-fides` to get the latest version of Fides and visit '{docs_link}' for up-to-date documentation.\n",
65+
fg="red",
66+
)
6267
ctx.ensure_object(dict)
6368
config = get_config(config_path)
6469

0 commit comments

Comments
 (0)