Page MenuHomeSoftware Heritage

Remove trailing SWHID qualifiers from origin URL column in deposit admin page
Closed, MigratedEdits Locked

Description

The deposit admin page at https://archive.softwareheritage.org/admin/deposit/ now shows origin urls with the SWHID qualifiers attached, which results in various errors when one tries to follow them. They just need to be removed.

Event Timeline

rdicosmo triaged this task as Normal priority.May 18 2020, 10:47 AM
rdicosmo created this task.

That's strange behavior.
Would that be because of the change we had last week, the origin looks like the new SWH-ID ? (@ardumont )
here an example of an origin on the deposit admin page:

https://doi.org/10.5201/ipol.2018.236;visit=swh:1:snp:07c80b96ab64e714fb69ed725f6b18caf87763ba;anchor=swh:1:rev:e8c3b521316edb2840078fae44cad9a66d5f5fbb;path=/

Oh, I know why, because the origin is extracted in the admin view from the swh-id...

Would that be because of the change we had last week, the origin looks like the new SWH-ID ? (@ardumont )
here an example of an origin on the deposit admin page:

https://doi.org/10.5201/ipol.2018.236;visit=swh:1:snp:07c80b96ab64e714fb69ed725f6b18caf87763ba;anchor=swh:1:rev:e8c3b521316edb2840078fae44cad9a66d5f5fbb;path=/
Oh, I know why, because the origin is extracted in the admin view from the swh-id...

It sure looks that way. I have opened a diff to propose a fix.