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

Backport Ability to log the last update to a feature (#2156) to GMF 1.6 #2582

Closed
eleu opened this issue Oct 10, 2016 · 4 comments
Closed

Backport Ability to log the last update to a feature (#2156) to GMF 1.6 #2582

eleu opened this issue Oct 10, 2016 · 4 comments
Milestone

Comments

@eleu
Copy link
Member

eleu commented Oct 10, 2016

Username and date for editing tables

Functionality descripton

During editing, the user and date should be saved together with the changes into the database, in the same table as the geodata.

  • The logs are filled when a new feature is created and when a feature is changed
  • The field date is of type Timestamp
  • The field user is of type String
  • be able to configure if a table is logged or not.
  • if a table is logged, it can be assumed that the fields “date” and “user” are present.
  • The customer will create the fields “date” and “user” in the geotables.

Reasons for this option (and why we do not do a generic Metadata table): If the table has a constraint of NOT NULL values, which is filled by a trigger from the log table, it is not possible to fill from this second transaction, because the first state will be incoherent.

To Do

The developements have already be done in GMF 2.0 by @fredj. As the customer cannot install GMF 2.x due to infrastruction restrictions, he needs this feature in GMF 1.6.x. Therefore you need to backport the PR #2156 to the 1.6 branch.

The feature is installed / testable in GMF 2.x here:

Developement server: gmf-test.sig.cloud.camptocamp.net

@eleu eleu added this to the 1.6.10 milestone Oct 10, 2016
juliensam pushed a commit to juliensam/c2cgeoportal that referenced this issue Nov 2, 2016
juliensam pushed a commit to juliensam/c2cgeoportal that referenced this issue Nov 2, 2016
@eleu
Copy link
Member Author

eleu commented Nov 11, 2016

what is the state of this issue? thanks for an update.

juliensam added a commit to juliensam/c2cgeoportal that referenced this issue Nov 15, 2016
juliensam added a commit to juliensam/c2cgeoportal that referenced this issue Nov 16, 2016
juliensam added a commit to juliensam/c2cgeoportal that referenced this issue Nov 16, 2016
sbrunner added a commit that referenced this issue Nov 16, 2016
Fix #2582 - Backport ability to log user and date to 1.6
@fredj
Copy link
Member

fredj commented Nov 22, 2016

Should be fixed with #2627. @eleu can we close this issue ?

@eleu
Copy link
Member Author

eleu commented Nov 22, 2016

I need to test.

@eleu
Copy link
Member Author

eleu commented Nov 23, 2016

Ok, I tested and it works. Closing this issue.

@eleu eleu closed this as completed Nov 23, 2016
@ger-benjamin ger-benjamin modified the milestones: 1.6.10, 1.6.11 May 15, 2017
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

3 participants