[Koha-bugs] [Bug 30663] New: API (/api/v1/suggestions) won't honor MaxOpenSuggestions

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon May 2 22:29:08 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30663

            Bug ID: 30663
           Summary: API (/api/v1/suggestions) won't honor
                    MaxOpenSuggestions
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: REST API
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: lucas at bywatersolutions.com
                CC: tomascohen at gmail.com

To recreate:

-Set MaxOpenSuggestions to something low, like 1.
-Make some suggestions via the API, making sure they are not anonymous and they
include a status of 'ASKED'.
-You can make as many requests as you want, regardless of MaxOpenSuggestions.

I am using this simple jQuery snippet to test:

$.ajax({
    type: 'POST',
    url: '/api/v1/suggestions/',
    data: '{"collection_title": "dasdas", "suggested_by": 5}',
    success: function(data) { console.log('suggestion added'); },
    contentType: "application/json",
    dataType: 'json'
});

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list