Ticket #1115 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

Replacing deleted and renamed resource ids + unique titles

Reported by: tarmo Owned by: jukka
Priority: critical Milestone:
Component: generic Version:
Keywords: Cc:
Time planned: Time remaining: 0h
Time spent: 1.0h

Description (last modified by tarmo) (diff)

Whenever someone is creating a new resource, and saving the edit form, the ID is renamed from the temporary one to match the title. We need a new check:

  • if the id matches an existing ID of some object, and that object is either a Deleted resource or a Redirector, that previous object is permanently removed, and the ID is used for this new object
  • if the id matches an existing ID of any other object, the validator will refuse the title and ask the user for a new title

In addition, titles of resources need to be unique, not just within a section, but between all 3 main sections. So the title validator needs to check that the proposed title isn't found in our catalog's title index.

Change History

comment:1 Changed 13 years ago by tarmo

  • Description modified (diff)
  • Summary changed from Replacing deleted and renamed resource ids to Replacing deleted and renamed resource ids + unique titles

comment:2 Changed 13 years ago by szabolcs

  • Owner changed from anonymous to szabolcs
  • Status changed from new to assigned

comment:3 Changed 13 years ago by jukka

  • Owner changed from szabolcs to jukka
  • Status changed from assigned to new

comment:4 Changed 13 years ago by szabolcs

  • Owner jukka deleted

comment:5 Changed 13 years ago by jukka

  • Owner set to jukka

comment:6 Changed 13 years ago by jukka

  • Status changed from new to closed
  • Time spent set to 1.0h
  • Resolution set to fixed
  • Time remaining set to 0h

(In [1379]) Fixed #1115 spent 1h more. Forgot to add the actual validator in last commit, piece mass uploader also fixd, but with irritating feature of not being able to go back and try a better name. (That page nees one more button.)

Note: See TracTickets for help on using tickets.