Compare commits
1 Commits
fix/upstre
...
fix/purge-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
01acb45320 |
@@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Fixed
|
||||||
|
- Fixed purge_seed_data crash when deleting access permissions - was comparing UUID to VARCHAR column (#107)
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Upstream source connectivity test no longer follows redirects, fixing "Exceeded maximum allowed redirects" error with Artifactory proxies (#107)
|
- Upstream source connectivity test no longer follows redirects, fixing "Exceeded maximum allowed redirects" error with Artifactory proxies (#107)
|
||||||
- Upstream sources table now has dedicated "Test" column with OK/Error status badges (#107)
|
- Upstream sources table now has dedicated "Test" column with OK/Error status badges (#107)
|
||||||
|
|||||||
@@ -194,7 +194,8 @@ def purge_seed_data(db: Session) -> dict:
|
|||||||
synchronize_session=False
|
synchronize_session=False
|
||||||
)
|
)
|
||||||
# Delete any access permissions for this user
|
# Delete any access permissions for this user
|
||||||
db.query(AccessPermission).filter(AccessPermission.user_id == user.id).delete(
|
# Note: AccessPermission.user_id is VARCHAR (username), not UUID
|
||||||
|
db.query(AccessPermission).filter(AccessPermission.user_id == user.username).delete(
|
||||||
synchronize_session=False
|
synchronize_session=False
|
||||||
)
|
)
|
||||||
db.delete(user)
|
db.delete(user)
|
||||||
|
|||||||
Reference in New Issue
Block a user