-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚗️ Maintenance: make upgrade/downgrade a module fixture (#4222)
- v1.79.3
- v1.79.2
- v1.79.1
- v1.79.0
- v1.78.2
- v1.78.1
- v1.78.0
- v1.77.4
- v1.77.3
- v1.77.2
- v1.77.1
- v1.77.0
- v1.76.6
- v1.76.5
- v1.76.4
- v1.76.3
- v1.76.2
- v1.76.1
- v1.76.0
- v1.75.1
- v1.75.0
- v1.74.0
- v1.73.0
- v1.72.0
- v1.71.1
- v1.71.0
- v1.70.1
- v1.70.0
- v1.69.0
- v1.68.0
- v1.67.0
- v1.66.0
- v1.65.0
- v1.64.0
- v1.63.0
- v1.62.2
- v1.62.0
- v1.61.0
- v1.60.0
- v1.59.0
- v1.58.2
- v1.58.1
- v1.58.0
- v1.57.0
- v1.56.1
- v1.56.0
- v1.55.1
- v1.55.0
- v1.54.0
- v1.53.0
- staging_sevenPeaks3
- staging_sevenPeaks2
- staging_sevenPeaks1
- staging_Watermelon6
- staging_Watermelon5
- staging_Watermelon4
- staging_Watermelon3
- staging_Watermelon2
- staging_Watermelon1
- staging_TomBombadil5
- staging_TomBombadil4
- staging_TomBombadil3
- staging_TomBombadil2
- staging_TomBombadil1
- staging_ThisIsSparta6
- staging_ThisIsSparta5
- staging_ThisIsSparta4
- staging_ThisIsSparta3
- staging_ThisIsSparta2
- staging_ThisIsSparta1
- staging_TheNameless6
- staging_TheNameless5
- staging_TheNameless4
- staging_TheNameless3
- staging_TheNameless2
- staging_TheNameless1
- staging_Sundae3
- staging_Sundae2
- staging_Sundae1
- staging_SouthIslandIcedTea4
- staging_SouthIslandIcedTea3
- staging_SouthIslandIcedTea2
- staging_SouthIslandIcedTea1
- staging_Singularity2
- staging_Singularity1
- staging_Schoggilebe6
- staging_Schoggilebe5
- staging_Schoggilebe4
- staging_Schoggilebe3
- staging_Schoggilebe2
- staging_Schoggilebe1
- staging_PastelDeNata5
- staging_PastelDeNata4
- staging_PastelDeNata3
- staging_Microhistory6
- staging_Microhistory5
- staging_Microhistory4
- staging_Microhistory3
- staging_Microhistory2
- staging_Microhistory1
- staging_MartinKippenberger8
- staging_MartinKippenberger7
- staging_MartinKippenberger6
- staging_MartinKippenberger5
- staging_MartinKippenberger4
- staging_MartinKippenberger3
- staging_MartinKippenberger2
- staging_MartinKippenberger1
- staging_LeeroyJenkins5
- staging_LeeroyJenkins4
- staging_LeeroyJenkins3
- staging_LeeroyJenkins2
- staging_LeeroyJenkins1
- staging_KobayashiMaru8
- staging_KobayashiMaru7
- staging_KobayashiMaru6
- staging_KobayashiMaru5
- staging_KobayashiMaru4
- staging_KobayashiMaru3
- staging_KobayashiMaru2
- staging_KobayashiMaru1
- staging_EventHorizon6
- staging_EventHorizon5
- staging_EventHorizon4
- staging_EventHorizon3
- staging_EventHorizon2
- staging_EventHorizon1
- staging_EnchantedOdyssey7
- staging_EnchantedOdyssey6
- staging_EnchantedOdyssey5
- staging_EnchantedOdyssey4
- staging_EnchantedOdyssey3
- staging_EnchantedOdyssey2
- staging_EnchantedOdyssey1
- staging_Eisbock7
- staging_Eisbock6
- staging_Eisbock5
- staging_Eisbock4
- staging_Eisbock3
- staging_Eisbock2
- staging_Eisbock1
- staging_Baklava5
- staging_Baklava4
- staging_Baklava3
- staging_Baklava2
- staging_Baklava1
- hotfix_v1_62_1
Showing
25 changed files
with
450 additions
and
380 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[flake8] | ||
ignore=E501 | ||
ignore=E501,W503 |
This file contains 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 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 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 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 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 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 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 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 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 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 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 |
---|---|---|
|
@@ -180,7 +180,7 @@ class BaseProjectDB: | |
@classmethod | ||
async def _get_everyone_group(cls, conn: SAConnection) -> RowProxy: | ||
result = await conn.execute( | ||
sa.select([groups]).where(groups.c.type == GroupType.EVERYONE) | ||
sa.select(groups).where(groups.c.type == GroupType.EVERYONE) | ||
) | ||
row = await result.first() | ||
return row | ||
|
@@ -197,7 +197,7 @@ async def _list_user_groups( | |
user_groups.append(everyone_group) | ||
else: | ||
result = await conn.execute( | ||
select([groups]) | ||
select(groups) | ||
.select_from(groups.join(user_to_groups)) | ||
.where(user_to_groups.c.uid == user_id) | ||
) | ||
|
@@ -208,16 +208,14 @@ async def _list_user_groups( | |
async def _get_user_email(conn: SAConnection, user_id: int | None) -> str: | ||
if not user_id: | ||
return "[email protected]" | ||
email = await conn.scalar( | ||
sa.select([users.c.email]).where(users.c.id == user_id) | ||
) | ||
email = await conn.scalar(sa.select(users.c.email).where(users.c.id == user_id)) | ||
assert isinstance(email, str) or email is None # nosec | ||
return email or "Unknown" | ||
|
||
@staticmethod | ||
async def _get_user_primary_group_gid(conn: SAConnection, user_id: int) -> int: | ||
primary_gid = await conn.scalar( | ||
sa.select([users.c.primary_gid]).where(users.c.id == str(user_id)) | ||
sa.select(users.c.primary_gid).where(users.c.id == str(user_id)) | ||
) | ||
if not primary_gid: | ||
raise UserNotFoundError(uid=user_id) | ||
|
@@ -226,7 +224,7 @@ async def _get_user_primary_group_gid(conn: SAConnection, user_id: int) -> int: | |
|
||
@staticmethod | ||
async def _get_tags_by_project(conn: SAConnection, project_id: str) -> list: | ||
query = sa.select([study_tags.c.tag_id]).where( | ||
query = sa.select(study_tags.c.tag_id).where( | ||
study_tags.c.study_id == project_id | ||
) | ||
return [row.tag_id async for row in conn.execute(query)] | ||
|
@@ -342,7 +340,7 @@ async def _get_project( | |
if only_published: | ||
conditions &= projects.c.published == "true" | ||
|
||
query = select([projects]).where(conditions) | ||
query = select(projects).where(conditions) | ||
if for_update: | ||
query = query.with_for_update() | ||
|
||
|
This file contains 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 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 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
471 changes: 241 additions & 230 deletions
471
services/web/server/tests/unit/with_dbs/01/test_groups.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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 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 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 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 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 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 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