Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(logger): add removeKeys functionality #901

Merged
merged 9 commits into from
May 30, 2022
Merged

Conversation

saragerion
Copy link
Contributor

@saragerion saragerion commented May 25, 2022

Description of your changes

This PR adds the option of removing persistent keys from a logger instance.
Developers are now able to do it using the method removeKeys. The method accepts as parameter an array of keys to be removed.

carbon (2)

How to verify this change

Unit tests & E2E tests added and passing locally.

Related issues, RFCs

#482

PR status

Is this ready for review?: YES
Is it a breaking change?: NO

Checklist

  • My changes meet the tenets criteria
  • I have performed a self-review of my own code
  • I have commented my code where necessary, particularly in areas that should be flagged with a TODO, or hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding changes to the examples
  • My changes generate no new warnings
  • The code coverage hasn't decreased
  • I have added tests that prove my change is effective and works
  • New and existing unit tests pass locally and in Github Actions
  • Any dependent changes have been merged and published in downstream module
  • The PR title follows the conventional commit semantics

Breaking change checklist

  • I have documented the migration process
  • I have added, implemented necessary warnings (if it can live side by side)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

package.json Outdated Show resolved Hide resolved
dreamorosi
dreamorosi previously approved these changes May 25, 2022
Copy link
Contributor

@dreamorosi dreamorosi left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, looking great - left only a couple of minor comments about typos.

PS: very nice to review a PR from you again 😄

package.json Outdated Show resolved Hide resolved
packages/logger/tests/unit/Logger.test.ts Outdated Show resolved Hide resolved
packages/logger/tests/unit/Logger.test.ts Outdated Show resolved Hide resolved
Co-authored-by: Andrea Amorosi <dreamorosi@gmail.com>
@saragerion saragerion requested a review from dreamorosi May 26, 2022 21:51
@saragerion saragerion merged commit a0f72c2 into main May 30, 2022
@saragerion saragerion deleted the feat/remove-log-keys branch May 30, 2022 09:39
flochaz pushed a commit that referenced this pull request Jun 3, 2022
* chore: add setup-local script

* feat(logger): add removeKeys functionality

* chore(logger): lint fix

* Update packages/logger/tests/unit/Logger.test.ts

Co-authored-by: Andrea Amorosi <dreamorosi@gmail.com>

* Update packages/logger/tests/unit/Logger.test.ts

Co-authored-by: Andrea Amorosi <dreamorosi@gmail.com>

* docs: added single command for local setup in contribuiting

* chore: fixed propriety typo

Co-authored-by: Andrea Amorosi <dreamorosi@gmail.com>
dreamorosi added a commit that referenced this pull request Aug 2, 2022
* chore: add setup-local script

* feat(logger): add removeKeys functionality

* chore(logger): lint fix

* Update packages/logger/tests/unit/Logger.test.ts

Co-authored-by: Andrea Amorosi <dreamorosi@gmail.com>

* Update packages/logger/tests/unit/Logger.test.ts

Co-authored-by: Andrea Amorosi <dreamorosi@gmail.com>

* docs: added single command for local setup in contribuiting

* chore: fixed propriety typo

Co-authored-by: Andrea Amorosi <dreamorosi@gmail.com>
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.

3 participants