Skip to content

fix(data): allow ChangeSetItemFactory to update entities with number ids#1995

Merged
brandonroberts merged 1 commit into
ngrx:masterfrom
allout58:master
Jul 7, 2019
Merged

fix(data): allow ChangeSetItemFactory to update entities with number ids#1995
brandonroberts merged 1 commit into
ngrx:masterfrom
allout58:master

Conversation

@allout58

@allout58 allout58 commented Jul 3, 2019

Copy link
Copy Markdown
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[x] Bugfix
[ ] 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?

ChangeSetItemFactory.update only allows for entities with string type IDs

Closes #1988

What is the new behavior?

ChangeSetItemFactory.update allows for entities with string or number type IDs, to match with Update<T>

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

Allow the `update` method of ChangeSetItemFactory to accept entities with numerical IDs.
This seems to be the intent, as the `Update<T>` it accepts can use either a string or a number for the ID, while the `update` method only allows for string IDs

Closes #1988
@ngrxbot

ngrxbot commented Jul 3, 2019

Copy link
Copy Markdown
Collaborator

Preview docs changes for 797391d at https://previews.ngrx.io/pr1995-797391d/

@brandonroberts brandonroberts merged commit f11c7b2 into ngrx:master Jul 7, 2019
@brandonroberts

Copy link
Copy Markdown
Member

Thanks @allout58!

jordanpowell88 pushed a commit to jordanpowell88/platform that referenced this pull request Nov 14, 2019
…ids (ngrx#1995)

Allow the `update` method of ChangeSetItemFactory to accept entities with numerical IDs.
This seems to be the intent, as the `Update<T>` it accepts can use either a string or a number for the ID, while the `update` method only allows for string IDs

Closes ngrx#1988
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.

ChangeItemSetFactory Update does not allow entities with Number IDs

3 participants