Just FYI, I may work on this feature this upcoming week.
Ok, I will take care of looking into adding some mc_user_get() method.The reason for a third method is mainly because I wouldn't want to break compatibility (even if one can check for the web service version). From a performace point of view, I think it would make sense, on what I've done so far mc_project_get_issues may be slow and return a lot of data, mc_project_get_issue_headers is a better fit for a lot of uses, but it forces you to make a lot of extra requests to get needed data like status and priorities names (yeah, it can be cached, but you still have to check them), and it's known that getting the users of a project may fail if there are a lot of registered users. Even so, mc_project_get_issue_headers resulted to be faster on some installations, although on others I was forced to go with mc_project_get_issues.
On Fri, May 25, 2012 at 9:12 PM, Robert Munteanu <email@example.com> wrote:
On Fri, May 25, 2012 at 2:14 PM, Hector Espeso <firstname.lastname@example.org> wrote:That would be fantastic :-) Obviously, take your time.
> Yeah, I already took a look at this yesterday, and saw the function I'd need
> to call in case I needed to add it myself, but I only looked at what
> interests me.
> I rarely have much spare time, and these two following weeks will be worse,
> but if you want I'll look after this feature request.
Yes, that would be. There's some work of getting pagination and also
> I also intend to look into adding another mc_project_get_issues function
> that would be a hybrid between mc_project_get_issues and
> mc_project_get_issue_headers (and the corresponding filtered request), so I
> can get the same or similar fields from issue_headers but with complete
> information (ie, instead of user id, its user data), and try to return the
> total number of issues or pages available. That way my implementation will
> be faster, require less bandwidth, and display the total number of pages
> available. I don't know if that would be of interest.
search working at
https://github.com/rombert/mantisbt/tree/soap-custom-filters, so you
can build on top of that.
I don't know if we really need a third method call which is between
mc_project_get_issues and mc_project_get_issue_headers from a
performance point of view, but we'll see down the road.
> On Fri, May 25, 2012 at 12:59 PM, Robert Munteanu
> <email@example.com> wrote:
>> On Fri, May 25, 2012 at 9:31 AM, Hector Espeso <firstname.lastname@example.org>
>> > I'm working on integrating Mantis together with another system, however
>> > I'm
>> > stuck on how to get an user access level for a certain project, so I can
>> > then enable/disable features (I know how to check later for this).
>> Hi Hector,
>> This is not yet possible and it's tracked at
>> 0013445: mc_user_get() to get user data
>> At the moment I'm a bit short on time so I can't promise anything
>> regarding an implementation timeline.
>> HOWEVER, this should not be very hard to implement if you're willing
>> to take a shot. I'm willing to help you any way I can with this - it
>> requires (some) PHP knowledge and the willingness to test and wrap it
>> up as a complete feature.
>> Let me know if you're interested.
>> > Is it possible? the only solution I've found so far is to get the users
>> > of a
>> > project with a certain access level, and I find that solution to be a
>> > bit
>> > cumbersome. Allowing for this would save unneeded roundtrips just to get
>> > an
>> > access denied message.
>> > ------------------------------------------------------------------------------
>> > Live Security Virtual Conference
>> > Exclusive live event will cover all the ways today's security and
>> > threat landscape has changed and how IT managers can respond.
>> > Discussions
>> > will include endpoint security, mobile security and the latest in
>> > malware
>> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> > _______________________________________________
>> > Mantisbt-soap-dev mailing list
>> > Mantisbtemail@example.com
>> > https://lists.sourceforge.net/lists/listinfo/mantisbt-soap-dev
>> Sent from my (old) computer
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> Mantisbt-soap-dev mailing list
Sent from my (old) computer