-
Notifications
You must be signed in to change notification settings - Fork 32
♻️ Maintenance/remove legacy db listing code 🚨🚨 #7889
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
Merged
matusdrobuliak66
merged 16 commits into
ITISFoundation:master
from
matusdrobuliak66:maintenance/remove-legacy-db-listing-code
Jun 18, 2025
Merged
Changes from 9 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
b3094f7
remove listing user services call from listing project
matusdrobuliak66 0bc92ea
remove listing user services from get project
matusdrobuliak66 f3f8b48
fix tests
matusdrobuliak66 e021706
Merge branch 'master' into is7876/project-listing-doesnt-need-user-se…
matusdrobuliak66 a37613b
fix tests
matusdrobuliak66 ba1d76e
maintenance: project listing
matusdrobuliak66 cc7b229
maintenance: project listing
matusdrobuliak66 c56eed1
maintenance: project listing
matusdrobuliak66 9b59cdf
maintenance: project listing
matusdrobuliak66 b5dd68a
improve DB list project model
matusdrobuliak66 34ff63e
review @pcrespov
matusdrobuliak66 688e56d
fix behaviour
matusdrobuliak66 0a45938
fix behaviour
matusdrobuliak66 d35cabb
fix behaviour
matusdrobuliak66 2727b19
Merge branch 'master' into maintenance/remove-legacy-db-listing-code
matusdrobuliak66 57d1029
Merge branch 'master' into maintenance/remove-legacy-db-listing-code
matusdrobuliak66 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -199,6 +199,18 @@ async def get_user_id_from_pgid(app: web.Application, *, primary_gid: int) -> Us | |
| return user_id | ||
|
|
||
|
|
||
| async def get_user_email_legacy(engine: AsyncEngine, *, user_id: UserID | None) -> str: | ||
| if not user_id: | ||
| return "[email protected]" | ||
| async with pass_or_acquire_connection(engine=engine) as conn: | ||
| email: str | None = await conn.scalar( | ||
| sa.select( | ||
| users.c.email, | ||
| ).where(users.c.id == user_id) | ||
| ) | ||
| return email or "Unknown" | ||
|
|
||
|
|
||
| async def get_user_fullname(app: web.Application, *, user_id: UserID) -> FullNameDict: | ||
| """ | ||
| :raises UserNotFoundError: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.