Skip to content

Added created_by field to users (D1178) - #647

Open
pwlodarski-ctrlo wants to merge 4 commits into
ctrlo:devfrom
pwlodarski-ctrlo:additional-user-info
Open

Added created_by field to users (D1178)#647
pwlodarski-ctrlo wants to merge 4 commits into
ctrlo:devfrom
pwlodarski-ctrlo:additional-user-info

Conversation

@pwlodarski-ctrlo

Copy link
Copy Markdown

When a user is created or an account request is approved, the creator/approver's username is set as the created_by value within the user's record. This is likewise reflected in the appropriate audit log messages.

@droberts-ctrlo droberts-ctrlo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing major - just a couple of (very) minor comments

Comment thread bin/seed-database.pl
site_id => $site->id,
username => $initial_username,
email => $initial_username,
site_id => $site->id,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be set automatically - this is in /lib/GADS/Schema.pm

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The site_id was already part of the script before these changes - only the indenting was updated on that line.

Comment thread lib/GADS/Schema.pm
__PACKAGE__->load_namespaces;

our $VERSION = 111;
our $VERSION = 112;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will need updating to 113 if it is merged after calc datetime (sorry)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouch. After that PR is merged, I'll merge the changes into this branch and upgrade the schema.

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

Successfully merging this pull request may close these issues.

2 participants