Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Return an empty collection instead of null. #664

Copy link
Copy link
Closed
@aozarov

Description

@aozarov
Issue body actions

Some of the the resource metadata properties are collections/maps.

I think currently we are not consistent and in some cases we return null if there is no value (e.g.
BlobInfo and BucketInfo) and in some cases we return an empty collection (e.g. ProjectInfo).

My preference would be to never return null for a collection as I think the value of being able to
distinct the case of "unassigned" and "assigned and empty" is very small and does not justify
the cost for checking for null and empty.

In any case, I think we should be consistent.

/cc @mziccard @ajkannan @mderka

Metadata

Metadata

Labels

type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.