Skip to content

getContentFromHub should overwrite most properties with their value from the item. #521

Open
@mjuniper

Description

@mjuniper

When I initially did #499, @tomwayson said:

I think we should add more overrides here.
...
Honestly, I think it'd be better to use a block list based on known oddities (name, extent, etc) than an allow list.

I did not do follow his advice at the time because it seemed less risky to scope it to things I knew I needed. And also because mergeObjects takes a whitelist. But I have come around to his way of thinking. We should switch to using a blacklist and overwrite most properties with their values from the item.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ContentRelated to the esri/hub-content packagechore

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions