-
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.
Is765/tags response include access-rights (#3591)
- 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
- v1.52.0
- v1.51.2
- v1.51.1
- v1.51.0
- v1.50.2
- v1.50.1
- v1.50.0
- v1.49.0
- v1.48.0
- v1.47.0
- v1.46.0
- v1.45.0
- v1.44.0
- v1.43.0
- v1.42.0
- v1.41.0
- v1.40.2
- v1.40.1
- v1.40.0
- staging_sevenPeaks3
- staging_sevenPeaks2
- staging_sevenPeaks1
- staging_athena3
- staging_ZeframCochrane5
- staging_ZeframCochrane4
- staging_ZeframCochrane3
- staging_ZeframCochrane2
- staging_ZeframCochrane1
- 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_Schoggilebe6
- staging_Schoggilebe5
- staging_Schoggilebe4
- staging_Schoggilebe3
- staging_Schoggilebe2
- staging_Schoggilebe1
- staging_ResistanceIsFutile16
- staging_ResistanceIsFutile15
- staging_ResistanceIsFutile14
- staging_ResistanceIsFutile13
- staging_ResistanceIsFutile12
- staging_ResistanceIsFutile11
- staging_ResistanceIsFutile10
- staging_ResistanceIsFutile9
- staging_ResistanceIsFutile8
- staging_ResistanceIsFutile7
- staging_ResistanceIsFutile6
- staging_ResistanceIsFutile5
- staging_ResistanceIsFutile4
- staging_ResistanceIsFutile3
- staging_ResistanceIsFutile2
- staging_ResistanceIsFutile1
- staging_PastelDeNata5
- staging_PastelDeNata4
- staging_PastelDeNata3
- staging_PastelDeNata2
- staging_PastelDeNata1
- staging_Mithril6
- staging_Mithril5
- staging_Mithril4
- staging_Mithril3
- staging_Mithril2
- staging_Mithril1
- 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_JellyBeans3
- staging_JellyBeans2
- staging_JellyBeans1
- 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
- staging_Athena2
- staging_Athena1
- hotfix_v1_62_1
Showing
16 changed files
with
1,082 additions
and
736 deletions.
There are no files selected for viewing
This file was deleted.
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
53 changes: 53 additions & 0 deletions
53
packages/pytest-simcore/src/pytest_simcore/helpers/utils_tags.py
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# pylint: disable=redefined-outer-name | ||
# pylint: disable=unused-argument | ||
# pylint: disable=unused-variable | ||
# pylint: disable=too-many-arguments | ||
|
||
|
||
from aiopg.sa.connection import SAConnection | ||
from simcore_postgres_database.models.tags import tags, tags_to_groups | ||
|
||
|
||
async def create_tag_access( | ||
conn: SAConnection, | ||
*, | ||
tag_id, | ||
group_id, | ||
read, | ||
write, | ||
delete, | ||
) -> int: | ||
await conn.execute( | ||
tags_to_groups.insert().values( | ||
tag_id=tag_id, group_id=group_id, read=read, write=write, delete=delete | ||
) | ||
) | ||
return tag_id | ||
|
||
|
||
async def create_tag( | ||
conn: SAConnection, | ||
*, | ||
name, | ||
description, | ||
color, | ||
group_id, | ||
read, | ||
write, | ||
delete, | ||
) -> int: | ||
"""helper to create a tab by inserting rows in two different tables""" | ||
tag_id = await conn.scalar( | ||
tags.insert() | ||
.values(name=name, description=description, color=color) | ||
.returning(tags.c.id) | ||
) | ||
assert tag_id | ||
await create_tag_access( | ||
conn, tag_id=tag_id, group_id=group_id, read=read, write=write, delete=delete | ||
) | ||
return tag_id | ||
|
||
|
||
async def delete_tag(conn: SAConnection, tag_id: int): | ||
await conn.execute(tags.delete().where(tags.c.id == tag_id)) |
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.10.0 | ||
0.11.0 |
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
1,088 changes: 549 additions & 539 deletions
1,088
services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml
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