Snippet file names in dashboard index
Summary
When versioned snippets feature is enabled and a snippet has no file name, it is auto-assigned one like snippetfile1.txt
.
Currently, the snippets dashboard (/dashboard/snippets
) does not pick up this file name from the snippet blob because it still looks for snippet.file_name
.
We should change the index view to instead conditionally lookup the snippet.blobs
and grab the name from there if applicable, like we do here so that it can render the name like we do in the show view
What is the current bug behavior?
A versioned snippet with a generated filename currently looks like this in the index:
What is the expected correct behavior?
It should look like this:
Edited by Vijay Hawoldar