Skip to content

Added limit and offset to HereNow API#121

Merged
marcin-cebo merged 12 commits intomasterfrom
mc/hereNow_PHP
Oct 28, 2025
Merged

Added limit and offset to HereNow API#121
marcin-cebo merged 12 commits intomasterfrom
mc/hereNow_PHP

Conversation

@marcin-cebo
Copy link
Contributor

Default and max value for limit is 1000

Default and max value for limit is 1000
@pubnub-ops-terraform
Copy link

pubnub-ops-terraform commented Oct 27, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Licenses 0 0 0 0 0 issues
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Copy link

@seba-aln seba-aln left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will try to dig deeper into those two new helper files,my gut tells me there's something fishy wit them

.gitignore Outdated
# Environment files (for local development) #
#############################################
.env
.env.local

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's more like:

.env.dev
.env.test
.env.prod

and I'm not sure if you need to ignore them apart of .env.dev

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess those files might store e.g. SECRET_PAM_KEY
We don't want to expose it by adding to repo

error_reporting(E_ALL);

// Load environment variables from .env file (for local development)
// This allows developers to set PUBLISH_KEY, SUBSCRIBE_KEY, etc. locally

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider removing comments below. they look redundant and "artificial"


// Verify paginated results don't overlap with first page
$secondPageUuids = array_map(
function($occupant) { return $occupant->getUuid(); },

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
function($occupant) { return $occupant->getUuid(); },
fn ($user) => $user->getUuid(),

Copy link
Contributor

@jakub-grzesiowski jakub-grzesiowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@Xavrax Xavrax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bumping @jakub-grzesiowski approve

@marcin-cebo marcin-cebo merged commit 3e196c3 into master Oct 28, 2025
12 checks passed
@marcin-cebo marcin-cebo deleted the mc/hereNow_PHP branch October 28, 2025 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants