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/get response raw data #1160

Merged
merged 5 commits into from
Mar 30, 2023
Merged

Conversation

kristian240
Copy link

Please select all that apply:

  • This PR contains a new feature
  • This PR updates an existing feature
  • This PR contains bugfixes
  • This PR contains all the relevant tests
  • This PR creates a breaking change

Please describe the differences between the current and new behavior

@kristian240 kristian240 requested review from DarkoKukovec and isBatak and removed request for DarkoKukovec March 29, 2023 09:50
@sonarcloud
Copy link

sonarcloud bot commented Mar 29, 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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@@ -7,17 +7,17 @@ To apply the mixin to your models and collections, use the `jsonapi` method. Eve

```typescript
import { Collection, Model } from '@datx/core';
import { config, jsonapi } from '@datx/jsonapi';
import { config, jsonapiModel } from '@datx/jsonapi';
Copy link
Member

Choose a reason for hiding this comment

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

What's the reasoning here to use jsonapiModel and collection instead of the jsonapi mixin? My thinking was to decrease the API surface and only have one function for everything.

Copy link
Author

Choose a reason for hiding this comment

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

I would assume that we don't want to bundle parts we do not need (static vs runtime). For example, view is something that is not used that often but it is being part of every app that uses datx.

Copy link
Author

Choose a reason for hiding this comment

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

@isBatak can you give your 2 cents on this one?

Copy link
Contributor

Choose a reason for hiding this comment

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

What @kristian240 said :D

Copy link
Author

Choose a reason for hiding this comment

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

@DarkoKukovec Are we okay with this then? If yes, can someone approve the PR? 😄

@kristian240 kristian240 merged commit c243803 into master Mar 30, 2023
@kristian240 kristian240 deleted the feature/getResponseRawData branch March 30, 2023 07:51
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