Problem/Motivation

When retrieving the segments to define visibility for it, we use the default get segments call this has a limit of 50 segments, so we do not get all segments we have to choose from.

Steps to reproduce

Have unomi with more then 50 segments, see that you can not find them all.

Proposed resolution

Use the size parameter.

Remaining tasks

Make sure to use a new release from unomi-sdk-php since without this https://gitlab.com/dropsolid/unomi-sdk-php/-/merge_requests/4 the sdk actually does not support setting the size parameter.
When not having that included, nothing changes, so it's not a breaking change to merge this before an updated sdk is released, only does not fix anything.

if possible this would also be good to have in the 4.x version (and have a new release for both 4.x and 5.x)

Issue fork unomi-3498788

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mallezie created an issue. See original summary.

mallezie’s picture

Status: Active » Needs review

grayle changed the visibility of the branch 3498788-cannot-select-all to hidden.

grayle changed the visibility of the branch 3498788-cannot-select-all to active.

grayle’s picture

I'd also update the requirement for the sdk.

mallezie’s picture

And done that, now that there is a new release there.

  • grayle committed 47e17bba on 5.x authored by mallezie
    Issue #3498788 by mallezie, grayle: Cannot select all segments when...
grayle’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

stevenx’s picture

Its not fixed for basic auth, i wrote a patch for the unomi php sdk (https://gitlab.com/dropsolid/unomi-sdk-php),
not sure how to gain permission to send a commit there...

would be nice if you review it and merge it.

now you see more than 50 segments.

thanks

Steven

"patches": {
"dropsolid/unomi-sdk-php": {
"Fix URL parameter application for Basic Auth (no provider) requests": "patches/unomi-sdk-query-param-fix.patch"
}
},

mallezie’s picture

@steven

Thanks for the patch, created a MR from it here. https://gitlab.com/dropsolid/unomi-sdk-php/-/merge_requests/5

I'll check with my colleagues for a new release for the sdk.