MantisBT

View Issue Details Jump to Notes ] Wiki ] Related Changesets ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012946mantisbtapi soappublic2011-04-18 17:032013-04-06 08:23
Reporterrnelson 
Assigned Torombert 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Versiongit trunk 
Target Version1.2.6Fixed in Version1.2.6 
Summary0012946: mc_user_pref_get_pref, user_pref_get_pref API call
DescriptionThe submitted patch adds function mc_user_pref_get_pref to the SOAP API as a frontend to user_pref_get_pref. With it, a developer can access things such as a user's default project via the API.
TagsNo tags attached.
Attached Filespatch file icon mcuserpref.patch [^] (3,011 bytes) 2011-04-18 17:03 [Show Content]
patch file icon mcuserpref-v2.patch [^] (5,401 bytes) 2011-04-25 13:00 [Show Content]
zip file icon mylyn/context/zip-20110427122452.zip [^] (3,061 bytes) 2011-04-26 17:24

- Relationships
related to 0015721new Functionality to consider porting to master-2.0.x 

-  Notes
User avatar (0028686)
rombert (developer)
2011-04-20 16:45

Thanks for the patch. I only have two minor comments:

- the ordering of the parameters should be 'project_id', 'pref_name', as we should go from general to specific;
- there is an unneeded assignment of $t_user_pref in the implementation; please return the value from the function call.

Also it would be nice to have a test, although it's not mandatory. I can assist if needed.
User avatar (0028693)
rnelson (reporter)
2011-04-25 13:01

I've uploaded an amended patch that includes those two changes and a test.
User avatar (0028696)
rombert (developer)
2011-04-26 17:24

Thanks! Committed to both branches, with minor modifications to tests.
User avatar (0036438)
grangeway (developer)
2013-04-05 17:57

Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch

- Related Changesets
MantisBT: master 286c1afa
Timestamp: 2011-04-26 21:15:50
Author: rnelson
Committer: rombert
Details ] Diff ]
Added function mc_user_pref_get_pref to the API to allow read access to user preferences.

Fixes 0012946: mc_user_pref_get_pref, user_pref_get_pref API call

Signed-off-by: Robert Munteanu <robert.munteanu@gmail.com>
mod - api/soap/mantisconnect.php Diff ] File ]
add - tests/soap/UserTest.php Diff ] File ]
mod - api/soap/mc_core.php Diff ] File ]
add - api/soap/mc_user_pref_api.php Diff ] File ]
mod - tests/soap/AllTests.php Diff ] File ]
MantisBT: master-1.2.x f7bf43fc
Timestamp: 2011-04-26 21:15:50
Author: rnelson
Committer: rombert
Details ] Diff ]
Added function mc_user_pref_get_pref to the API to allow read access to user preferences.

Fixes 0012946: mc_user_pref_get_pref, user_pref_get_pref API call

Signed-off-by: Robert Munteanu <robert.munteanu@gmail.com>
add - tests/soap/UserTest.php Diff ] File ]
mod - api/soap/mc_core.php Diff ] File ]
add - api/soap/mc_user_pref_api.php Diff ] File ]
mod - api/soap/mantisconnect.php Diff ] File ]
mod - tests/soap/AllTests.php Diff ] File ]

- Issue History
Date Modified Username Field Change
2011-04-18 17:03 rnelson New Issue
2011-04-18 17:03 rnelson File Added: mcuserpref.patch
2011-04-20 16:45 rombert Note Added: 0028686
2011-04-20 16:46 rombert Assigned To => rombert
2011-04-20 16:46 rombert Status new => assigned
2011-04-20 16:46 rombert Target Version => 1.2.6
2011-04-25 13:00 rnelson File Added: mcuserpref-v2.patch
2011-04-25 13:01 rnelson Note Added: 0028693
2011-04-26 17:24 rombert Changeset attached => MantisBT master 286c1afa
2011-04-26 17:24 rombert Changeset attached => MantisBT master-1.2.x f7bf43fc
2011-04-26 17:24 rombert Resolution open => fixed
2011-04-26 17:24 rombert Fixed in Version => 1.2.6
2011-04-26 17:24 rombert Note Added: 0028696
2011-04-26 17:24 rombert Resolution fixed => open
2011-04-26 17:24 rombert Fixed in Version 1.2.6 =>
2011-04-26 17:24 rombert Status assigned => resolved
2011-04-26 17:24 rombert Resolution open => fixed
2011-04-26 17:24 rombert Fixed in Version => 1.2.6
2011-04-26 17:24 rombert File Added: mylyn/context/zip-20110427122452.zip
2011-07-26 09:53 jreese Status resolved => closed
2013-04-05 17:57 grangeway Status closed => acknowledged
2013-04-05 17:57 grangeway Note Added: 0036438
2013-04-05 18:09 grangeway Relationship added related to 0015721
2013-04-06 03:43 dregad Status acknowledged => closed
2013-04-06 07:22 grangeway Status closed => acknowledged
2013-04-06 08:23 grangeway Status acknowledged => closed


MantisBT 1.2.16dev master-1.2.x-05091f5 [^]
Copyright © 2000 - 2013 MantisBT Team
Time: 0.0927 seconds.
memory usage: 2,871 KB
Powered by Mantis Bugtracker