-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
project.last_modified_at needs to be updated from every endpoint #3742
Comments
punchagan
added a commit
that referenced
this issue
Sep 18, 2019
This commit adds logging in the Django `LogEntry` table for all API calls to viewsets that are subclassing the `PublicProjectViewSet`. If the API call updates an object other than a `Project`, two log entries are created - one for the actual object that changed, and another for the project to which this object is related to. The function to log these changes is a cleaner version of the `log_changes` function that was being used in the old Project Editor. The entry format has been changed from the previous logging function to match the Django logging format more closely.
punchagan
added a commit
that referenced
this issue
Sep 18, 2019
Project.last_modified_at is updated internally by Django, when a save is called on the project. `Project.last_modified_by` is a property that uses entries in the `LogEntry` table to get last modified time and user information. The `ProjectSerializer` has been updated in this commit to use this property on the Project for the `last_modified_at` field. Closes #3742
punchagan
added a commit
that referenced
this issue
Sep 18, 2019
This commit adds logging in the Django `LogEntry` table for all API calls to viewsets that are subclassing the `PublicProjectViewSet`. If the API call updates an object other than a `Project`, two log entries are created - one for the actual object that changed, and another for the project to which this object is related to. The function to log these changes is a cleaner version of the `log_changes` function that was being used in the old Project Editor. The entry format has been changed from the previous logging function to match the Django logging format more closely.
punchagan
added a commit
that referenced
this issue
Sep 18, 2019
Project.last_modified_at is updated internally by Django, when a save is called on the project. `Project.last_modified_by` is a property that uses entries in the `LogEntry` table to get last modified time and user information. The `ProjectSerializer` has been updated in this commit to use this property on the Project for the `last_modified_at` field. Closes #3742
punchagan
added a commit
that referenced
this issue
Sep 18, 2019
This commit adds logging in the Django `LogEntry` table for all API calls to viewsets that are subclassing the `PublicProjectViewSet`. If the API call updates an object other than a `Project`, two log entries are created - one for the actual object that changed, and another for the project to which this object is related to. The function to log these changes is a cleaner version of the `log_changes` function that was being used in the old Project Editor. The entry format has been changed from the previous logging function to match the Django logging format more closely.
punchagan
added a commit
that referenced
this issue
Sep 18, 2019
Project.last_modified_at is updated internally by Django, when a save is called on the project. `Project.last_modified_by` is a property that uses entries in the `LogEntry` table to get last modified time and user information. The `ProjectSerializer` has been updated in this commit to use this property on the Project for the `last_modified_at` field. Closes #3742
punchagan
added a commit
that referenced
this issue
Sep 19, 2019
This commit adds logging in the Django `LogEntry` table for all API calls to viewsets that are subclassing the `PublicProjectViewSet`. If the API call updates an object other than a `Project`, two log entries are created - one for the actual object that changed, and another for the project to which this object is related to. The function to log these changes is a cleaner version of the `log_changes` function that was being used in the old Project Editor. The entry format has been changed from the previous logging function to match the Django logging format more closely.
punchagan
added a commit
that referenced
this issue
Sep 19, 2019
punchagan
added a commit
that referenced
this issue
Sep 27, 2019
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Currently the "Updated at [time]" info we display in the upper left corner of the project editor is wrong in some cases. For example if you open a project you last edited yesterday it will show "Updated yesterday by Martin". If you then go to section5 (or any section), change something it will say "Updated just now". Then, however if you refresh the page it will say "Updated yesterday".
This is due to the "last_updated_at" field of the /project/ not being updated.
The text was updated successfully, but these errors were encountered: