Skip to content

Commit 10810c7

Browse files
hotfix: 1.4.1
Hotfix/1.4.1: Fix personal conversation scopping, personal team name typ in french, user team list display
2 parents 533c263 + 00336f9 commit 10810c7

21 files changed

Lines changed: 65 additions & 32 deletions

File tree

agentic-backend/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "agentic-backend-app"
33
readme = "README.md"
4-
version = "1.4.0"
4+
version = "1.4.1"
55
description = "Agentic Backend App"
66
authors = [{ name = "Fred", email = "noreply@example.com" }]
77
requires-python = ">=3.12,<3.13"

agentic-backend/uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

control-plane-backend/control_plane_backend/users_controller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from fastapi import APIRouter, Depends, FastAPI, Path, status
44
from fastapi.responses import JSONResponse
55
from fred_core import KeycloakUser, TeamPermission, get_current_user
6-
from fred_core.common import TeamId
6+
from fred_core.common import PERSONAL_TEAM_ID
77
from pydantic import BaseModel
88

99
from control_plane_backend.teams_structures import (
@@ -104,7 +104,7 @@ async def get_user_details(
104104
) -> UserDetails:
105105
return UserDetails(
106106
personalTeam=TeamWithPermissions(
107-
id=TeamId("personal"),
107+
id=PERSONAL_TEAM_ID,
108108
name="Equipe personnelle",
109109
member_count=1,
110110
is_private=True,

control-plane-backend/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "control-plane-backend"
33
readme = "README.md"
4-
version = "1.4.0"
4+
version = "1.4.1"
55
description = "Minimal control-plane backend for team lifecycle and policy resolution"
66
authors = [{ name = "Fred", email = "noreply@example.com" }]
77
requires-python = ">=3.12,<3.13"

control-plane-backend/uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deploy/charts/fred/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
22
name: fred
33
description: Helm chart for Fred
4-
version: 1.4.0
5-
appVersion: 1.4.0
4+
version: 1.4.1
5+
appVersion: 1.4.1

fred-core/fred_core/common/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
StoreConfig,
3535
TemporalSchedulerConfig,
3636
)
37-
from .team_id import TeamId
37+
from .team_id import PERSONAL_TEAM_ID, TeamId
3838
from .utils import raise_internal_error
3939

4040
__all__ = [
@@ -51,6 +51,7 @@
5151
"SQLStorageConfig",
5252
"StoreConfig",
5353
"TeamId",
54+
"PERSONAL_TEAM_ID",
5455
"TemporalSchedulerConfig",
5556
"ThreadSafeLRUCache",
5657
"coerce_bool",

fred-core/fred_core/common/team_id.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@
1616

1717
# TeamId is a distinct type from str for static type checking.
1818
TeamId = NewType("TeamId", str)
19+
20+
PERSONAL_TEAM_ID = TeamId("personal")

fred-core/fred_core/security/rebac/rebac_engine.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from enum import Enum
88
from typing import Iterable
99

10+
from fred_core.common import PERSONAL_TEAM_ID
1011
from fred_core.security.keycloak.keycloack_admin_client import (
1112
KeycloackDisabled,
1213
create_keycloak_admin,
@@ -564,8 +565,15 @@ async def groups_list_to_relations(self, user: KeycloakUser) -> set[Relation]:
564565
if isinstance(self.keycloak_client, KeycloackDisabled):
565566
return set()
566567

567-
relation: set[Relation] = set()
568-
568+
# Each user is a member of its own personal team
569+
# TODO 1501 Remove when teams are not based on keycloak anymore
570+
relation: set[Relation] = {
571+
Relation(
572+
subject=RebacReference(Resource.USER, user.uid),
573+
relation=RelationType.MEMBER,
574+
resource=RebacReference(Resource.TEAM, PERSONAL_TEAM_ID),
575+
)
576+
}
569577
for group in user.groups:
570578
relation.add(
571579
Relation(

fred-core/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "fred-core"
3-
version = "1.4.0"
3+
version = "1.4.1"
44
description = "Add your description here"
55
readme = "README.md"
66
requires-python = ">=3.12"

0 commit comments

Comments
 (0)