Skip to content

Conversation

@bevzzz
Copy link
Collaborator

@bevzzz bevzzz commented Jul 11, 2025

➡️ Merge after #315. There are some CI configuration updates and test fixes.

This PR adds API for managing collection aliases and extends the set of permissions with AliasPermission.

Manage aliases

client.alias.create({ collection: "Pizza", alias: "PizzaPie" });
client.alias.listAll();
client.alias.listAll("Pizza"); // list aliases defined for Pizza collection
client.alias.get("PizzaPie");
client.alias.update({ alias: "PizzaPie", newTargetCollectionName: "Langos" });
client.alias.delete("PizzaPie");

Manage alias permissions

weaviate.permissions.aliases({
    alias: ["PizzaPie", "PizzaWhy"],
    create: true,
    read: true,
    update: true,
    delete: true,
})

@bevzzz bevzzz requested a review from tsmith023 July 11, 2025 11:23
@bevzzz bevzzz self-assigned this Jul 11, 2025
Copy link

@orca-security-eu orca-security-eu bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

@bevzzz bevzzz force-pushed the feat/collection-alias branch from 5d1fbda to 67313f7 Compare July 15, 2025 08:25
Accept an -Opts object in the listAll() request
to allow extending parameter list in the future.
@bevzzz bevzzz requested a review from tsmith023 July 15, 2025 14:49
@bevzzz bevzzz marked this pull request as ready for review July 15, 2025 14:49
@bevzzz bevzzz merged commit 43679b7 into main Jul 16, 2025
18 checks passed
@bevzzz bevzzz deleted the feat/collection-alias branch July 16, 2025 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants