#1704 Changed how we call the milestones property setter to save milestones imported from the git repository.
Merged by pingou. Opened by cverna.
cverna/pagure fix_milestone_import  into  master

Download 1704.patch

Basically the milestones setter define here was never called by the milestones[key] = foo syntax, instead we were getting the @property retruning the current value of the project milestone in the DB.

This is fixing it by doing a local copy of the project milestones, adding the new key to the copy and dumping the copied dictionary to the DB.

Fixes https://pagure.io/pagure/issue/1604

Signed-off-by: Clement Verna cverna@tutanota.com

Nice catch!

Pull-Request has been merged by pingou

Metadata