Best practice forum (Archived)

该论坛讨论已删除

 
该论坛帖子已被删除
2011年06月14日 Tuesday 01:33
该论坛帖子的内容已被删除,无法再访问。
CogginsSimon
Re: Deleted users in reports
CogginsSimon 发表于 2011年06月14日 Tuesday 01:45
小组 Totara

Hi Luke,

That does sound like a bug - can you tell me which report(s) the deleted users are showing up in and I'll look into it.

Simon

HoenenBodo
Re: Deleted users in reports
HoenenBodo 发表于 2011年08月18日 Thursday 10:42
 

Hi Simon. Luke

Did you get to the bottom of this one? Ive just picked up the same problem on my reports. and before i start messing about in the files i want to check with you guys.

Kind regards

Bodo

CogginsSimon
Re: Deleted users in reports
CogginsSimon 发表于 2011年08月21日 Sunday 18:36
小组 Totara

I'm not able to reproduce the problem with the 'Team Members' report.

Which report / report source is this happening with?

Simon

SkripnikovDaniel
Re: Deleted users in reports
SkripnikovDaniel 发表于 2011年08月22日 Monday 09:49
 

Hi Simmon,

I have this issue with "Competency Evidence" report source

Danil

HoenenBodo
Re: Deleted users in reports
HoenenBodo 发表于 2011年08月22日 Monday 11:38
 

Hi Simon

I am using the 'User' source and created a report on user locations, its showing deleated users within the report.

Kind regards
Bodo

Craig Eves
Re: Deleted users in reports
Eves (Totara Support)Craig 发表于 2011年08月22日 Monday 13:54
小组 Totara

Hi Bodo

I tried in demo.totaralms.com with the user source and the deleted user did appear in the report.

The deleted username is changed to the email address with a number appended eg craig@nomail.com.1314045682

When a user is marked for deletion some of the data is changed by Totara and some of the user record is kept.

In the short term the data source needs to be changed to exclude deleted users  and in the longer term a nicer way to delete records should be found . Maybe just making a student inactive rather than deleting is a better way to do this.

Craig

该论坛帖子已被删除
2011年08月22日 Monday 14:11
该论坛帖子的内容已被删除,无法再访问。
CogginsSimon
Re: Deleted users in reports
CogginsSimon 发表于 2011年08月22日 Monday 15:21
小组 Totara

Yes, there's a few different issues here that we need to consider how best to handle:

  • Should we show or hide deleted users when viewing a list of users? I think by default we should hide them, there is a question as to if it should be possible to show them.
  • When a user is deleted, should we delete all the data associated with their account. For example course completion records, competency evidence etc. Moodle chooses not to delete this info and I would tend to agree it makes sense to keep for historical reasons.
  • If that's the case, we need to decide if reports should always show data for deleted users, never show it, or provide it as an option
  • The same questions arise for inactive users - how do you mark a user as inactive, how do we know that when reporting and should we provide similar options for hiding data belonging to inactive users
It does get quite complicated if we have to provide options for all these cases, so I'd be keen to come up with some general rules that we can apply consistently. For example:
  • Deleted users and their data is preserved but always hidden in reports
  • Inactive users and their data can be optionally shown or hidden in reports (greyed out if shown)
  • Users should only be marked as deleted if you never want them back and you are not interested in data associated with them.
  • Users should be marked as inactive if you may want to restore the account, and/or you want historical data to remain in the system.
In terms of how to mark a user as inactive, one option is to set their authentication method to nologin. That essentially disables the account, but might not be suitable in all cases.
Similar questions may arise when deleting courses - I believe at the moment deleting a course triggers the deletion of all data associated with it.
Anyone else got any thoughts to add?
Simon
Austen Sinclair
Re: Deleted users in reports
SinclairAusten 发表于 2011年08月22日 Monday 17:48
小组 Partners小组 TXP Site Administrator小组 V18 Program Complete

Summary of how we handle departed staff

What we do

We never delete user accounts (with exceptions for test & duplicates accounts).

We keep all course pages (with exceptions of test & play/practice pages) and those not required or current become ‘archived’ in a Category that is not accessible by staff – but does means their Completion Status and Grade is still visible in their Record of Learning.

We use LDAP for authentication (currently Novell’s eDirectory but in next few months we move to Active Directory).  A field, populated from our HRMIS to LDAP, shows whether the account is ‘enabled’ or ‘disabled’ which we map to a custom field in the user profile. 

We sync to LDAP on each user login and sync overnight. Our LDAP process recently changed and departing staff are deleted from LDAP and not ‘disabled’.  We have an open request with our Totara partner to add a script that detects that a user account hasn’t matched an LDAP record over five successful sync’s and then marks the account as ‘disabled’.

We then use this field to hide ‘disabled’ staff in most areas where the view is via the Totara report builder e.g. My Team, reports by business group/unit, and custom reports about Trainer performance / groups of courses.

However, in our standard Moodle based reports (course page level Grades & Feedback summary etc) the users with the ‘disabled’ value are included and a column indicating the users status is shown.

Rationale

Like most Government Departments we are subject to questions in the house (our Parliament) on spend and time costs of training, seminars & conferences. In 1999 a Chief Executive was sacked over chartering a plane to transport staff to a conference in an upmarket venue (to be fair the venue was at a bargain price and she was mislead over the plane cost) but she had little data to back up her position (and  waited too long to explain to the media). While that’s 11 years ago opposition parties still explore this area of expenditure and we’re expected to be able to provide comprehensive data.

We also provide for internal audiences time based comparisons around training participation and outcomes.  These comparisons are very different if you exclude staff who have since left (we have high-ish turnover in the first 18 months but lower than average turnover after this length of service).

We re-hire staff – admittedly this is mostly fixed-term and contracting staff.  None the less we use the LMS to maintain records that they have completed our compulsory courses and required business specific courses. Deleting their records would mean having to run duplicate records of training participation and have the administrative cost of re-importing this data into the LMS.

We don’t show ‘disabled’ staff in Totara report builder views as the user tends to be accessing pre-formatted reports and often isn’t aware that is report based view. The reverse is true of the standard Moodle reports – as they are only accessible via those with administrative permissions and often as not want to include or compare data of staff who have left the organisation.



Cheers

Austen

Craig Eves
Re: Deleted users in reports
Eves (Totara Support)Craig 发表于 2011年08月22日 Monday 18:50
小组 Totara

It does seem a good idea to not delete data where possible but just to mark the record as deleted to allow the analysis of historic data.

Eventually this could lead to performance problems - what would be a good idea is to  store the non current data separate to the working database so analysis can be done on this without affecting performance of the Totara system (a data warehouse)

Has any thought been given on how to create a data warehouse for Totara and whether this might be worthwhile. I know its early days but probably needs to be thought about.

Craig

SkripnikovDaniel
Re: Deleted users in reports
SkripnikovDaniel 发表于 2011年08月22日 Monday 20:26
 
We work in helth care area.

We also keep all historical data for active and "deleted" users (more then 10 eyars).

In the reports we do not show any data about "deleted" users(except statistic).

We do not allow any operations with "deleted" users in the system.

But in case we rehire user he has all history information.

Thanks


HoenenBodo
Re: Deleted users in reports
HoenenBodo 发表于 2011年08月22日 Monday 14:36
 

OK guys thank you!

Using your explanation I have now filtered out "deleted" users by adding a filter: Username does not contain @

Inversely if i want to report on "deleted" users i can add a filter
Username does contain @

Is there a way of defaulting the filters values on reports?

Kind regards
Bodo

CogginsSimon
Re: Deleted users in reports
CogginsSimon 发表于 2011年08月22日 Monday 15:11
小组 Totara

Once you've applied a filter you can create a 'saved report', which is just a link to that report with the filters applied.

Perform the search, then click the 'Save this search' button. you can give your search a name, and choose it is is private (only you can see it) or public (available to any other user who can see the report).

Once saved you should see a pulldown menu to give you access to all saved searches for a report, and you can bookmark the URL to quickly get back to that particular search.

Simon

HoenenBodo
Re: Deleted users in reports
HoenenBodo 发表于 2011年08月23日 Tuesday 14:32
 
Thank you Simon, That worked well!
CogginsSimon
Re: Deleted users in reports
CogginsSimon 发表于 2012年01月29日 Sunday 20:05
小组 Totara

Just to update everyone, after some careful thought we've decided to hide records belonging to deleted users in all report sources.

The records will remain in the database but won't be shown by report builder reports. If you want to disable a user but still view their records we suggest you set the 'authentication method' to 'nologin', which will disable the account but keep the records visible.

This change will be in the next version of each release (1.0.31 and 1.0.10).

Simon

??
Re: Deleted users in reports
?? 发表于 2012年07月4日 Wednesday 21:51
 

Hi Simon


I've got a client with deleted users still appearing in competency reports - did that one get missed?

Thanks


Nigel

CogginsSimon
Re: Deleted users in reports
CogginsSimon 发表于 2012年07月5日 Thursday 00:36
小组 Totara

Hi Nigel, 

I'm afraid that it proved to be much more difficult than we originally anticipated so the patch didn't make it through review. Apologies for not updating this post.

We need more time to figure out an approach that will work for all organisations (not everyone wants deleted users hidden so it needs to be a configuration option).

Simon

该论坛帖子已被删除
2012年10月2日 Tuesday 08:54
该论坛帖子的内容已被删除,无法再访问。
该论坛帖子已被删除
2013年01月24日 Thursday 14:59
该论坛帖子的内容已被删除,无法再访问。
CogginsSimon
Re: Deleted users in reports
CogginsSimon 发表于 2013年03月4日 Monday 19:46
小组 Totara

Hi Mark,

Looking at that branch, it implemented hiding deleted users by hardcoding it into each report. The problem is that some organisations want to show them and others want to hide them! So there isn't really much in that branch that would be useful.

Instead we'd prefer to create a new content restriction that can be included by different sources. That would allow different organisations to set it differently and even configure individual reports differently if they want.

I've attached a mockup of what the content restriction might look like.

If you were able to implement this and send us a copy we would definitely be interested in adding it to core totara.

Simon


Curry (Core Developer)David
Re: Deleted users in reports
Curry (Core Developer)David 发表于 2013年04月10日 Wednesday 20:16
小组 Totara
Hey everyone,

With todays (11 Apr 2013) release of Totara 2.2.17 we have added a 'User Status' filter to report builder reports. This lets you filter by 'Deleted users only' and 'Active users only', it isn't a full fix but hopefully this helps.

Cheers
David
该论坛帖子已被删除
2013年04月25日 Thursday 20:34
该论坛帖子的内容已被删除,无法再访问。
me
Re: Deleted users in reports
AngusGeorge 发表于 2013年04月25日 Thursday 20:56
小组 Totara

Hi Jo,

At the moment I think you'd be best using a custom field for removing the users you need. In 2.4 there will be a checkbox for suspended users you will be able to use.

hope this helps,

regards,

 

George.

Williamson-KingGavin
Re: Deleted users in reports
Williamson-KingGavin 发表于 2016年02月29日 Monday 01:50
 

We've had a client request this same feature, Also I've found some plus ones in this [https://totara.community/mod/forum/discuss.php?d=18015] discussion for the same feature.

Is there an official way to add a vote for this feature (adding a content option for showing records by user status) ?

Also is it possible as a subscriber/partner to get access to the branch you mentioned (where the "don't show deleted users' records" is hardcoded into each report) as we'd like to implement this in one client's installation?

Gavin

me
Re: Deleted users in reports
AngusGeorge 发表于 2016年02月29日 Monday 13:32
小组 Totara

Hi Gavin,

Things have moved on somewhat since 2013. What version is your client using? What we recommend is not deleting users at all but suspending them, and filtering them out of reports.

cheers,

George.