Page MenuHomeSoftware Heritage

save code now: add a "take a new snapshot" button
Closed, ResolvedPublic

Description

Now that we have save code now, it seems reasonable to also have a related "update this code" button that people can use to trigger a new crawl of a repository they are browsing in the web app.

Notes about the idea:

  • in terms of DoS risks, that doesn't seem any worse than save code now itself (as such, this new UI element should similarly be protected with captchas)
  • this feature seems better than automatically scheduling crawl updates for repos that are just visited via the Web app (idea we discussed before), but it's not incompatible with it, it's just a middle ground
  • I'm not sure about the best text label for the UI element "update this repository" might be a better option, but then we should make sure the button appears only for repository-like sources

Event Timeline

zack created this task.Jan 4 2019, 12:17 PM
zack triaged this task as High priority.
olasd added a subscriber: olasd.Jan 4 2019, 2:20 PM

Sounds fine to me.

I'd name the bikeshed "Take a new snapshot (of this repository)" as that'd be consistent with the "Snapshot date" label that the button will likely sit close to.

zack added a comment.Jan 4 2019, 2:27 PM

I like your wording! (and we can leave the parenthetical aside, by just deploying the feature bit by bit on the origins that support re-taking a snapshot, like repositories right now)

zack renamed this task from save code now: add an "update this code" button to save code now: add a "take a new snapshot" button.Jan 4 2019, 2:28 PM

I like the idea, will work on it when I get back from holidays on monday.

Not sure if adding a new button is necessary, The 'Take new snapshot' action
could be added in the 'Actions' dropdown menu located at the top right part of the Web UI.
A modal dialog could then be displayed for captcha validation to effectively create
a loading task.

anlambert claimed this task.Jan 5 2019, 9:21 PM
zack added a comment.Jan 5 2019, 9:30 PM

i agree it doesn't need to be a "button", any UI element would do

anlambert changed the task status from Open to Work in Progress.Jan 10 2019, 11:03 AM