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

Use associative array key type for entity collection ids #5791

Merged
merged 3 commits into from
Sep 1, 2017

Conversation

gberaudo
Copy link
Contributor

The previous type: Object is too broad, thus not compatible with the associative array key: String|Number.

As a side note, I noticed the documentation is broken: click on the link to the source code of https://cesiumjs.org/Cesium/Build/Documentation/EntityCollection.html#getById and you will get a 404 error.

@cesium-concierge
Copy link

@gberaudo, thanks for the pull request! Maintainers, we have a signed CLA from @gberaudo, so you can review this at any time.

I noticed that CHANGES.md has not been updated. If this change updates the public API in any way, fixes a bug, or makes any non-trivial update, please add a bullet point to CHANGES.md and comment on this pull request so we know it was updated. For more info, see the Pull Request Guidelines.

I am a bot who helps you make Cesium awesome! Thanks again.

@ggetz
Copy link
Contributor

ggetz commented Aug 30, 2017

Hi @gberaudo, thanks for the pull request!

According to the Entity.id docs, id should be a string exclusively.

Would you also mind updating the docs for the other EnityCollection functions that take an id as a parameter, likegetById(id)?

@gberaudo
Copy link
Contributor Author

Thanks for fixing the documentation links.
Sure, I will look at this.

@gberaudo
Copy link
Contributor Author

I looked at other places and only found an issue in CompositeEntityCollection, which is now also fixed.

@ggetz
Copy link
Contributor

ggetz commented Aug 31, 2017

Thanks @gberaudo! Can you also update CHANGES.md? Once that's done this is ready to go.

@gberaudo
Copy link
Contributor Author

OK @ggetz, done.

@ggetz
Copy link
Contributor

ggetz commented Aug 31, 2017

Thanks @gberaudo !

@pjcozzi This is ready to merge.

@pjcozzi
Copy link
Contributor

pjcozzi commented Sep 1, 2017

Thanks @gberaudo @ggetz!

@pjcozzi pjcozzi merged commit 5ac57c7 into CesiumGS:master Sep 1, 2017
@gberaudo gberaudo deleted the tentative_type_fix branch September 1, 2017 06:10
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.

4 participants