Skip to content

DynamoDbFeatureRequester prefix/namespace inconsistent with NodeJS equivalent prefix:namespace. #138

@MrAdamCook

Description

@MrAdamCook

When attempting to implement our LD Relay (Daemon Mode) on both NodeJS and PHP I noticed that the way prefixes and namespaces are coalesced are inconsistent.
In our DynamoDB for the LD Relay the namespace values are saved as so "website:test:features". This has resulted in the NodeJS implementation working as expected, but the PHP implementation can't find the same flags.

PHP SDK:

$this->_prefix = ($prefix != null && $prefix != '') ? ($prefix . '/') : '';

NodeJS Server SDK:
return prefix ? (prefix + ':' + baseNamespace) : baseNamespace;
https://github.com/launchdarkly/node-server-sdk-dynamodb/blob/8ea55e68a057cfe4c7bb8de2aa5d9dd63b475f9d/dynamodb_feature_store.js#L174

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions