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

Provide Version properties related to creation/modification #442

Closed
herflis opened this Issue Aug 8, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@herflis
Copy link
Contributor

herflis commented Aug 8, 2018

Now it is not possible to get the followings of a Version:
CreationDate
ModificationDate
CreatedBy
ModifiedBy
Since it is on the ui as a column of the version history, we need them in the OData response of a '/Versions' request in the near future.

@kavics

This comment has been minimized.

Copy link
Contributor

kavics commented Sep 4, 2018

The CTD of the GenericContent is extended by four fields based on the existing server-side properties with the same name:

  • VersionCreatedBy
  • VersionCreationDate
  • VersionModifiedBy
  • VersionModificationDate

These fields can be tested with a specific URL like this:
http://____.__/odata.svc/Root/Sites/Default_Site/DocLib('BusinessPlan.docx')?metadata=no
&$expand=Versions,CreatedBy,ModifiedBy,Versions/VersionCreatedBy,Versions/VersionModifiedBy
&$select=Name,CreationDate,CreatedBy/LoginName,ModificationDate,ModifiedBy/LoginName
,Versions/Version
,Versions/VersionCreationDate
,Versions/VersionCreatedBy/LoginName
,Versions/VersionModificationDate
,Versions/VersionModifiedBy/LoginName

@kavics kavics added this to the Sprint 167 milestone Sep 5, 2018

@kavics kavics self-assigned this Sep 5, 2018

@tusmester tusmester assigned herflis and unassigned kavics Sep 8, 2018

@kultsar kultsar closed this Sep 12, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment