Piwigo Bugtracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001312Piwigoweb APIpublic2009.12.07 23:212009.12.09 23:19
Reporterplg 
Assigned Toplg 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target Version2.0.7Fixed in Version2.0.7 
Summary0001312: [pwg.images.setInfo] ability to replace tags/categories
DescriptionCurrently (Piwigo 2.0.6) pwg.images.setInfo replaces single value properties (author, name, comment, creation date) and appends multiple values properties (tags and categories).

We would like to have a "replace mode" in addition to the "append mode" for multiple values properties.
TagsNo tags attached.
browserany
Database engine and version
PHP version
Web serverApache 1.3.x
Attached Files

- Relationships

-  Notes
(0003195)
svn (reporter)
2009.12.07 23:28

[Subversion] r4444 by plg on branch 2.0

-----[Subversion commit log]----------------------------------------------------
feature 1312 added: pwg.images.setInfo can replace multiple values propreties
(tags/categories). The primary condition is to provide "tag_ids" and/or
"categories" input parameters, ie pwg.images.set won't create emptiness. You
can reduce the set of tags/categories but not remove all tags/categories.

bug 1277 fixed: with a stronger algorithm for adding/replacing categories, we
now avoid to recreate an existing image_category association.

When a remote client calls pwg.images.setInfo, Piwigo returns an error 500 if:
1. the "categories" parameter is malformed (no numeric id inside)
2. one of the input categories does not exist at database level.
(0003197)
svn (reporter)
2009.12.07 23:30

[Subversion] r4445 by plg on trunk

-----[Subversion commit log]----------------------------------------------------
merge r4444 from branch 2.0 to trunk

feature 1312 added: pwg.images.setInfo can replace multiple values propreties
(tags/categories). The primary condition is to provide "tag_ids" and/or
"categories" input parameters, ie pwg.images.set won't create emptiness. You
can reduce the set of tags/categories but not remove all tags/categories.

bug 1277 fixed: with a stronger algorithm for adding/replacing categories, we
now avoid to recreate an existing image_category association.

When a remote client calls pwg.images.setInfo, Piwigo returns an error 500 if:
1. the "categories" parameter is malformed (no numeric id inside)
2. one of the input categories does not exist at database level.
(0003210)
svn (reporter)
2009.12.09 23:14

[Subversion] r4459 by plg on branch 2.0

-----[Subversion commit log]----------------------------------------------------
feature 1316 added: we now have the ability to only fill the single value
properties that are currently empty in the database instead of automatically
replacing.

feature 1312: as a matter of consistency, I have changed the replace_mode
(that was only for multiple values properties) into multiple_value_mode +
single_value_mode.
(0003212)
svn (reporter)
2009.12.09 23:19

[Subversion] r4460 by plg on trunk

-----[Subversion commit log]----------------------------------------------------
merge r4459 from branch 2.0 to trunk

feature 1316 added: we now have the ability to only fill the single value
properties that are currently empty in the database instead of automatically
replacing.

feature 1312: as a matter of consistency, I have changed the replace_mode
(that was only for multiple values properties) into multiple_value_mode +
single_value_mode.

- Issue History
Date Modified Username Field Change
2009.12.07 23:21 plg New Issue
2009.12.07 23:21 plg Status new => assigned
2009.12.07 23:21 plg Assigned To => plg
2009.12.07 23:21 plg browser => any
2009.12.07 23:21 plg Web server => Apache 1.3.x
2009.12.07 23:28 svn Checkin
2009.12.07 23:28 svn Note Added: 0003195
2009.12.07 23:30 svn Checkin
2009.12.07 23:30 svn Note Added: 0003197
2009.12.07 23:31 plg Fixed in Version => 2.0.7
2009.12.07 23:31 plg Status assigned => closed
2009.12.07 23:32 plg Resolution open => fixed
2009.12.09 23:14 svn Checkin
2009.12.09 23:14 svn Note Added: 0003210
2009.12.09 23:19 svn Checkin
2009.12.09 23:19 svn Note Added: 0003212


Copyright © 2000 - 2015 MantisBT Team
Contact
Powered by Mantis Bugtracker