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

feature/139/use provide and with factory functions #144

Merged
merged 45 commits into from
May 23, 2023

Conversation

NachoVazquez
Copy link
Contributor

@NachoVazquez NachoVazquez commented Nov 7, 2022

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines: CONTRIBUTING.md#commit
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Moduleless (standalone) applications have to import Lumberjack modules to make Lumberjack work instead of a more suitable solution like provider factory functions.

Issue Number: #139

What is the new behavior?

Lumberjack can easily be used in standalone applications using the new provider factory functions. These are created for the Lumberjack Core and built-in drivers

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@NachoVazquez NachoVazquez force-pushed the feature/139/use-provide-and-with-factory-functions branch 2 times, most recently from 8d88a66 to aa39f8a Compare November 11, 2022 16:22
@NachoVazquez NachoVazquez marked this pull request as ready for review November 11, 2022 16:40
@LayZeeDK LayZeeDK force-pushed the feature/139/use-provide-and-with-factory-functions branch from 78d0fd5 to 41b3101 Compare November 29, 2022 22:37
@sonarcloud
Copy link

sonarcloud bot commented Dec 11, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@NachoVazquez NachoVazquez force-pushed the feature/139/use-provide-and-with-factory-functions branch from 2a19efe to d58aef5 Compare March 11, 2023 03:18
packages/ngworker/lumberjack/http-driver/README.md Outdated Show resolved Hide resolved
packages/ngworker/lumberjack/http-driver/README.md Outdated Show resolved Hide resolved
packages/ngworker/lumberjack/http-driver/README.md Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
packages/ngworker/lumberjack/http-driver/README.md Outdated Show resolved Hide resolved
packages/ngworker/lumberjack/http-driver/README.md Outdated Show resolved Hide resolved
packages/ngworker/lumberjack/http-driver/README.md Outdated Show resolved Hide resolved
@NachoVazquez NachoVazquez requested a review from LayZeeDK May 5, 2023 12:05
Copy link
Member

@LayZeeDK LayZeeDK left a comment

Choose a reason for hiding this comment

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

Lint and Bug Issues are reported by SonarCloud.

For some reason, lint issues in *.spec.ts files are not reported by SonarCloud, for example this current issue:

http-driver\src\lib\configuration\provide-lumberjack-http-driver.spec.ts
    2:10  warning  'HttpInterceptorFn' is defined but never used  @typescript-eslint/no-unused-vars
  141:45  warning  Unexpected any. Specify a different type       @typescript-eslint/no-explicit-any
  141:56  warning  Unexpected any. Specify a different type       @typescript-eslint/no-explicit-any

@NachoVazquez
Copy link
Contributor Author

Lint and Bug Issues are reported by SonarCloud.

For some reason, lint issues in *.spec.ts files are not reported by SonarCloud, for example this current issue:

http-driver\src\lib\configuration\provide-lumberjack-http-driver.spec.ts
    2:10  warning  'HttpInterceptorFn' is defined but never used  @typescript-eslint/no-unused-vars
  141:45  warning  Unexpected any. Specify a different type       @typescript-eslint/no-explicit-any
  141:56  warning  Unexpected any. Specify a different type       @typescript-eslint/no-explicit-any

Also the ESLint Sonar plugin is not detecting the same stuff as the Cloud

@NachoVazquez
Copy link
Contributor Author

Lint and Bug Issues are reported by SonarCloud.

For some reason, lint issues in *.spec.ts files are not reported by SonarCloud, for example this current issue:

http-driver\src\lib\configuration\provide-lumberjack-http-driver.spec.ts
    2:10  warning  'HttpInterceptorFn' is defined but never used  @typescript-eslint/no-unused-vars
  141:45  warning  Unexpected any. Specify a different type       @typescript-eslint/no-explicit-any
  141:56  warning  Unexpected any. Specify a different type       @typescript-eslint/no-explicit-any

It is working now :)

@NachoVazquez NachoVazquez force-pushed the feature/139/use-provide-and-with-factory-functions branch from 3f04ea7 to a220162 Compare May 16, 2023 00:08
@sonarcloud
Copy link

sonarcloud bot commented May 16, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

Copy link
Member

@LayZeeDK LayZeeDK left a comment

Choose a reason for hiding this comment

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

Approved pending answer of 1 question.

.github/workflows/ci.yml Show resolved Hide resolved
@NachoVazquez NachoVazquez merged commit cd72a1b into main May 23, 2023
9 checks passed
@NachoVazquez NachoVazquez deleted the feature/139/use-provide-and-with-factory-functions branch May 23, 2023 06:56
NachoVazquez added a commit that referenced this pull request Jun 12, 2023
Please check if your PR fulfills the following requirements:

- [x] The commit message follows our guidelines: CONTRIBUTING.md#commit
- [x] Tests for the changes have been added (for bug fixes / features)
- [x] Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce?

<!-- Please check the one that applies to this PR using "x". -->

```
[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:
```

Moduleless (standalone) applications have to import Lumberjack modules
to make Lumberjack work instead of a more suitable solution like
provider factory functions.

Issue Number: #139

Lumberjack can easily be used in standalone applications using the new
provider factory functions. These are created for the Lumberjack Core
and built-in drivers

```
[ ] Yes
[x] No
```

<!-- If this PR contains a breaking change, please describe the impact
and migration path for existing applications below. -->

---------

Co-authored-by: Lars Gyrup Brink Nielsen <[email protected]>
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.

None yet

3 participants