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

fix(sequelize-ds): allow user to create a record when there is a virtual field by removing it from the returned record #1223

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

Scra3
Copy link
Member

@Scra3 Scra3 commented Dec 2, 2024

linked to: CU-86c173ay7

Definition of Done

General

  • Write an explicit title for the Pull Request, following Conventional Commits specification
  • Test manually the implemented changes
  • Validate the code quality (indentation, syntax, style, simplicity, readability)

Security

  • Consider the security impact of the changes made

@@ -115,7 +127,7 @@ describe('SequelizeDataSource > Collection', () => {
};

it('should delegate work to `sequelize.model.bulkCreate`', async () => {
const data = [{ data: 'data' }, { data: 10 }, { data: ['Enum'] }];
Copy link
Member Author

Choose a reason for hiding this comment

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

Data does not exist in the model. I replace it by existing fields.

@Scra3 Scra3 force-pushed the fix-virtual-field-on-sequelize branch from e2f2232 to 16b29ee Compare December 3, 2024 08:27
Copy link

codeclimate bot commented Dec 3, 2024

Code Climate has analyzed commit 16b29ee and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (98% is the threshold).

This pull request will bring the total coverage in the repository to 97.2%.

View more on Code Climate.

Copy link
Contributor

@realSpok realSpok left a comment

Choose a reason for hiding this comment

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

  • ✅ PR title

  • ✅ PR linked to the clickup task

  • ✅ The PR tackle one subject only

  • ✅ Destination branch

  • ✅ Code review

    • ✅ Use pure functions when possible
    • ✅ Performance concerns
    • ✅ Security concerns
  • ✅ Automatic tests

    • ✅ Unit tests
    • ✅ Integration tests
  • ✅ Manual tests

    • ✅ Test the functionality
    • ✅ Test error cases

@Scra3 Scra3 merged commit a7cb4da into main Dec 3, 2024
22 checks passed
@Scra3 Scra3 deleted the fix-virtual-field-on-sequelize branch December 3, 2024 13:08
forest-bot added a commit that referenced this pull request Dec 3, 2024
## [1.11.18](https://github.com/ForestAdmin/agent-nodejs/compare/[email protected]@1.11.18) (2024-12-03)

### Bug Fixes

* **sequelize-ds:** allow user to create a record when there is a virtual field by removing it from the returned record ([#1223](#1223)) ([a7cb4da](a7cb4da))
forest-bot added a commit that referenced this pull request Dec 3, 2024
## [1.5.6](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2024-12-03)

### Bug Fixes

* introduce agentCapabilities sub object ([#1222](#1222)) ([bce04f9](bce04f9))
* **sequelize-ds:** allow user to create a record when there is a virtual field by removing it from the returned record ([#1223](#1223)) ([a7cb4da](a7cb4da))

### Features

* **capabilities:** add capabilities on get one projection ([#1221](#1221)) ([0909eaf](0909eaf))
@forest-bot
Copy link
Member

🎉 This PR is included in version 1.12.10 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

forest-bot added a commit that referenced this pull request Dec 3, 2024
## [1.11.1](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2024-12-03)

### Bug Fixes

* introduce agentCapabilities sub object ([#1222](#1222)) ([bce04f9](bce04f9))
* **sequelize-ds:** allow user to create a record when there is a virtual field by removing it from the returned record ([#1223](#1223)) ([a7cb4da](a7cb4da))

### Features

* **capabilities:** add capabilities on get one projection ([#1221](#1221)) ([0909eaf](0909eaf))
@forest-bot
Copy link
Member

🎉 This PR is included in version 1.11.18 🎉

The release is available on [email protected]

Your semantic-release bot 📦🚀

forest-bot added a commit that referenced this pull request Dec 3, 2024
## [1.16.1](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2024-12-03)

### Bug Fixes

* introduce agentCapabilities sub object ([#1222](#1222)) ([bce04f9](bce04f9))
* **sequelize-ds:** allow user to create a record when there is a virtual field by removing it from the returned record ([#1223](#1223)) ([a7cb4da](a7cb4da))

### Features

* **capabilities:** add capabilities on get one projection ([#1221](#1221)) ([0909eaf](0909eaf))
@forest-bot
Copy link
Member

🎉 This PR is included in version 1.5.6 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.11.1 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.16.1 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.1.15 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

forest-bot added a commit that referenced this pull request Dec 18, 2024
# [1.56.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2024-12-18)

### Bug Fixes

* **export-advanced:** compute filename on runtime ([#1229](#1229)) ([44082e8](44082e8))
* **security:** patch mongoose dependency vulnerabilities ([#1224](#1224)) ([d6197a9](d6197a9))
* **security:** patch path-to-regexp dependency vulnerabilities ([#1227](#1227)) ([839a4f3](839a4f3))
* **sequelize-ds:** allow user to create a record when there is a virtual field by removing it from the returned record ([#1223](#1223)) ([a7cb4da](a7cb4da))

### Features

* **native-query:** execute chart query requests ([#1225](#1225)) ([84b26dd](84b26dd))
forest-bot added a commit that referenced this pull request Dec 18, 2024
# [1.57.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2024-12-18)

### Bug Fixes

* **export-advanced:** compute filename on runtime ([#1229](#1229)) ([44082e8](44082e8))
* introduce agentCapabilities sub object ([#1222](#1222)) ([bce04f9](bce04f9))
* **security:** patch mongoose dependency vulnerabilities ([#1224](#1224)) ([d6197a9](d6197a9))
* **security:** patch path-to-regexp dependency vulnerabilities ([#1227](#1227)) ([839a4f3](839a4f3))
* **sequelize-ds:** allow user to create a record when there is a virtual field by removing it from the returned record ([#1223](#1223)) ([a7cb4da](a7cb4da))

### Features

* **capabilities:** add capabilities on get one projection ([#1221](#1221)) ([0909eaf](0909eaf))
* **native-query:** execute chart query requests ([#1225](#1225)) ([84b26dd](84b26dd))
forest-bot added a commit that referenced this pull request Dec 18, 2024
## [1.1.42](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2024-12-18)

### Bug Fixes

* **export-advanced:** compute filename on runtime ([#1229](#1229)) ([44082e8](44082e8))
* introduce agentCapabilities sub object ([#1222](#1222)) ([bce04f9](bce04f9))
* **security:** patch mongoose dependency vulnerabilities ([#1224](#1224)) ([d6197a9](d6197a9))
* **security:** patch path-to-regexp dependency vulnerabilities ([#1227](#1227)) ([839a4f3](839a4f3))
* **sequelize-ds:** allow user to create a record when there is a virtual field by removing it from the returned record ([#1223](#1223)) ([a7cb4da](a7cb4da))

### Features

* **capabilities:** add capabilities on get one projection ([#1221](#1221)) ([0909eaf](0909eaf))
* **native-query:** execute chart query requests ([#1225](#1225)) ([84b26dd](84b26dd))
forest-bot added a commit that referenced this pull request Dec 18, 2024
## [1.8.7](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2024-12-18)

### Bug Fixes

* **export-advanced:** compute filename on runtime ([#1229](#1229)) ([44082e8](44082e8))
* introduce agentCapabilities sub object ([#1222](#1222)) ([bce04f9](bce04f9))
* **security:** patch mongoose dependency vulnerabilities ([#1224](#1224)) ([d6197a9](d6197a9))
* **security:** patch path-to-regexp dependency vulnerabilities ([#1227](#1227)) ([839a4f3](839a4f3))
* **sequelize-ds:** allow user to create a record when there is a virtual field by removing it from the returned record ([#1223](#1223)) ([a7cb4da](a7cb4da))

### Features

* **capabilities:** add capabilities on get one projection ([#1221](#1221)) ([0909eaf](0909eaf))
* **native-query:** execute chart query requests ([#1225](#1225)) ([84b26dd](84b26dd))
@forest-bot
Copy link
Member

🎉 This PR is included in version 1.3.27 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

forest-bot added a commit that referenced this pull request Dec 18, 2024
# [1.45.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2024-12-18)

### Bug Fixes

* **export-advanced:** compute filename on runtime ([#1229](#1229)) ([44082e8](44082e8))
* introduce agentCapabilities sub object ([#1222](#1222)) ([bce04f9](bce04f9))
* **security:** patch mongoose dependency vulnerabilities ([#1224](#1224)) ([d6197a9](d6197a9))
* **security:** patch path-to-regexp dependency vulnerabilities ([#1227](#1227)) ([839a4f3](839a4f3))
* **sequelize-ds:** allow user to create a record when there is a virtual field by removing it from the returned record ([#1223](#1223)) ([a7cb4da](a7cb4da))

### Features

* **capabilities:** add capabilities on get one projection ([#1221](#1221)) ([0909eaf](0909eaf))
* **native-query:** execute chart query requests ([#1225](#1225)) ([84b26dd](84b26dd))
forest-bot added a commit that referenced this pull request Dec 18, 2024
# [1.36.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2024-12-18)

### Bug Fixes

* **export-advanced:** compute filename on runtime ([#1229](#1229)) ([44082e8](44082e8))
* introduce agentCapabilities sub object ([#1222](#1222)) ([bce04f9](bce04f9))
* **security:** patch mongoose dependency vulnerabilities ([#1224](#1224)) ([d6197a9](d6197a9))
* **security:** patch path-to-regexp dependency vulnerabilities ([#1227](#1227)) ([839a4f3](839a4f3))
* **sequelize-ds:** allow user to create a record when there is a virtual field by removing it from the returned record ([#1223](#1223)) ([a7cb4da](a7cb4da))

### Features

* **capabilities:** add capabilities on get one projection ([#1221](#1221)) ([0909eaf](0909eaf))
* **native-query:** execute chart query requests ([#1225](#1225)) ([84b26dd](84b26dd))
forest-bot added a commit that referenced this pull request Dec 18, 2024
## [1.4.10](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2024-12-18)

### Bug Fixes

* **export-advanced:** compute filename on runtime ([#1229](#1229)) ([44082e8](44082e8))
* introduce agentCapabilities sub object ([#1222](#1222)) ([bce04f9](bce04f9))
* **security:** patch mongoose dependency vulnerabilities ([#1224](#1224)) ([d6197a9](d6197a9))
* **security:** patch path-to-regexp dependency vulnerabilities ([#1227](#1227)) ([839a4f3](839a4f3))
* **sequelize-ds:** allow user to create a record when there is a virtual field by removing it from the returned record ([#1223](#1223)) ([a7cb4da](a7cb4da))

### Features

* **capabilities:** add capabilities on get one projection ([#1221](#1221)) ([0909eaf](0909eaf))
* **native-query:** execute chart query requests ([#1225](#1225)) ([84b26dd](84b26dd))
forest-bot added a commit that referenced this pull request Dec 18, 2024
# [1.4.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2024-12-18)

### Bug Fixes

* **export-advanced:** compute filename on runtime ([#1229](#1229)) ([44082e8](44082e8))
* introduce agentCapabilities sub object ([#1222](#1222)) ([bce04f9](bce04f9))
* **security:** patch mongoose dependency vulnerabilities ([#1224](#1224)) ([d6197a9](d6197a9))
* **security:** patch path-to-regexp dependency vulnerabilities ([#1227](#1227)) ([839a4f3](839a4f3))
* **sequelize-ds:** allow user to create a record when there is a virtual field by removing it from the returned record ([#1223](#1223)) ([a7cb4da](a7cb4da))

### Features

* **capabilities:** add capabilities on get one projection ([#1221](#1221)) ([0909eaf](0909eaf))
* **native-query:** execute chart query requests ([#1225](#1225)) ([84b26dd](84b26dd))
@forest-bot
Copy link
Member

🎉 This PR is included in version 1.56.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.57.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.1.42 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.8.7 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.45.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.36.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.4.10 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.4.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants