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

Generic properties created and modified for all resources #75

Open
kba opened this issue Nov 30, 2015 · 2 comments
Open

Generic properties created and modified for all resources #75

kba opened this issue Nov 30, 2015 · 2 comments

Comments

@kba
Copy link
Contributor

kba commented Nov 30, 2015

All resources, regardless of their semantics, should have created/modified properties, which should be set, resp. for every POST/PUT request.

This is important for paging (c.f. #74).

Need to decide on good names for those

  • created and modified
    • PRO: Easy to remember
    • CON: Can interfere with semantics
  • _created and modified
    • PRO: Clear because underscore-prefixed names are private by convention
    • CON: Might interfere with other Monoose plugins or MongoDB conventions (need to investigate)
  • _mongoosejsonld_created and _mongoosejsonld_created
    • PRO: No conflicts possible
    • CON: Long and ugly

I'm also open for suggestions @infolis/developers

@bolandka
Copy link
Member

bolandka commented Dec 2, 2015

I would tend to not using created and modified, indeed this might be confusing. When using the long and ugly variant it should be clear that, in the case of InfolisFiles for example, this refers to the creation / modification of the InfolisFile resource rather than the creation / modification of the underlying document.

How about calling it resource_created and resource_modified?

@kba
Copy link
Contributor Author

kba commented Jun 14, 2016

This is now live (resource_created and resource_modified). Still open how/if we expose this as LD.

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

No branches or pull requests

2 participants