AssetBrowser: Add cleanup operator for asset index. #92335
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#92335
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Users can rename/relocate/remove asset libraries. When they do created indexes would lead to files that will not be used anymore. Having a cleanup operation would help the user to free space on their storage device.
Approach
Users can have multiple blender versions installed with different asset libraries configured. The challenge here is that you when cleaning up automatically you can clean up indexes that are still used.
The approach to help the user would be to have an operation with an option to filter what indexes should actually be cleaned.
Requirements
Design questions
There are 4 locations where such an operation makes sense:
Looking at the table above I would propose to add OP1, OP2 to the preferences and OP3 to the asset browser space inside the edit menu.
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscribers: @Jeroen-Bakker, @JulianEisel
I know we've planned this for 3.0 last week, but thinking about it, for me this isn't necessary for 3.0. It's a nice-to-have, but these caches won't be that big. So just having some left-over caches lying around isn't much of an issue. There's also no way to clear cached thumbnails, not in Blender and I think not in OSes either.
So your plan is to allow the user to select which exact libraries will get their cache cleared? I find that problematic UI design wise. How would the UI look like to select these? But more importantly, what do users see that identifies a library? The name? That would mean we have to store the asset library name in the cache, which is an issue if multiple Blender versions register the same library under a different name. Or we have to somehow synchronize the name between Blender versions...
Deleting a cache that is actually still used isn't that big of an issue. It'll just be recreated.
Some alternative ideas:
General development task, nothing release specific.