Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/src/database/services/organizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,8 @@ async def create(session: AsyncSession, name: str, user: User) -> Organization:
session.add(organization)
await session.flush()

# Store the All filter once so later renames and deletions remain permanent.
session.add(OrganizationTag(organization_id=organization.id, name="All", kind=TagKind.all, icon=TagIcon.app_window))
# Store the Company filter once so later renames and deletions remain permanent.
session.add(OrganizationTag(organization_id=organization.id, name="Company", kind=TagKind.all, icon=TagIcon.app_window))

# Queue infrastructure creation in the caller's transaction after persisting the Organization.
allocation = OrganizationUsageUpdate.model_validate(organization, from_attributes=True)
Expand Down
2 changes: 1 addition & 1 deletion api/tests/routes/v1/test_organizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async def test_create_organization_persists_desired_state_and_queues_creation(
assert organization.storage_bytes == 1024**3
assert organization.database_storage_bytes == 1024**3
assert default_tag is not None
assert default_tag.name == "All"
assert default_tag.name == "Company"

# Creation persists an active Organization before asynchronous provisioning.
assert organization.deleted_at is None
Expand Down
5 changes: 0 additions & 5 deletions web/src/platform/routes/orgs/organization.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ export default function Organization() {
</Empty>
) : (
<div className="flex flex-col gap-6">
{visibleSolutions.length === 0 && (
<p className="text-sm text-muted-foreground" role="status">
No solutions in this tab
</p>
)}
<ul aria-label="Solutions" className="flex flex-wrap items-start gap-x-10.5 gap-y-7">
{visibleSolutions.map((solution) => (
<li key={solution.id} className="w-24">
Expand Down
2 changes: 1 addition & 1 deletion web/tests/platform/layouts/organization.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ it('selects the query category and updates it when following organization links'
const base = `/orgs/${membership.organization.id}`;

const tags = zOrganizationTagResponse.array().parse([
{ id: '00000000-0000-4000-8000-000000000003', name: 'All', kind: 'all', icon: 'app-window' },
{ id: '00000000-0000-4000-8000-000000000003', name: 'Company', kind: 'all', icon: 'app-window' },
{ id: '00000000-0000-4000-8000-000000000004', name: 'Finance', kind: 'tag', icon: 'app-window' }
]);

Expand Down