Skip to content

Conversation

patrick-tolosa
Copy link
Contributor

Pull request for @Cloudinary/Base

What does this PR solve?

  • Add support for addFlag('foo') directly, without a flagQualifier instance
  • Remove support for flag concatenation addFlag('foo').addFlag('bar') -> fl_foo,fl_bar (instead of fl_foo.bar)
  • Fix tests to match new implementation

Look at the Action instance and how the addFlag() method changed, to store the flags in the flags array.
since now we have two places to combine, the mapToSortedArray function also had to change.

Final checklist

  • Implementation is aligned to Spec.
  • Tests - Add proper tests to the added code.

- Add support for addFlag('foo') directly, without a flagQualifier instance
- Remove support for flag concatenation addFlag('foo').addFlag('bar') -> fl_foo,fl_bar (instead of fl_foo.bar)
@patrick-tolosa patrick-tolosa requested a review from strausr January 7, 2021 17:32
@patrick-tolosa patrick-tolosa merged commit 5f44e0f into master Jan 10, 2021
@patrick-tolosa patrick-tolosa deleted the feature/remove-flag-concatenation branch January 10, 2021 12:25
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.

2 participants