Skip to content

Update mass metadata changes #1

@redmer

Description

@redmer

Currently, all uncommitted changes are sent sequentially to the server.
But some metadata change endpoints allow a multitude of changes be applied directly to a bunch of assets.
Check the pyfwapi code and optimize where possible.

async def commit(self, *, conn: APIConnection, await_done: bool = True):
"""Commit changes ready to commit."""
for task in self.tasks.values():
if task.status != "uncommitted":
continue
await self.commit_uncommitted(task, conn=conn)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions