CVS log for loncom/enrollment/Autoupdate.pl

[BACK] Up to [LON-CAPA] / loncom / enrollment

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Dec 10 17:43:06 2023 UTC (4 months, 1 week ago) by raeburn
Branches: MAIN
CVS tags: version_2_12_X, version_2_11_4_msu, HEAD
Diff to previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3 lines
- Fix path to id_check() routine in localenroll.pm

Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Dec 6 23:46:16 2023 UTC (4 months, 1 week ago) by raeburn
Branches: MAIN
Diff to previous 1.26: preferred, colored
Changes since revision 1.26: +61 -9 lines
- Sanity checking during automated update of user information using
  institutional data to prevent deletion of first and last name, or
  student/employee ID, in the case of institutional data feed issues.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Dec 6 23:38:45 2023 UTC (4 months, 1 week ago) by raeburn
Branches: MAIN
Diff to previous 1.25: preferred, colored
Changes since revision 1.25: +7 -7 lines
- Remove trailing whitespace.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri Jan 14 16:27:20 2022 UTC (2 years, 3 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_11_X, version_2_11_4_uiuc, version_2_11_4
Diff to previous 1.24: preferred, colored
Changes since revision 1.24: +12 -3 lines
- Provide mechanism to (optionally) log counts to autoupdate.log when running
  Autoupdate.pl to update user information for users in a domain.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed Sep 1 02:14:42 2021 UTC (2 years, 7 months ago) by raeburn
Branches: MAIN
Diff to previous 1.23: preferred, colored
Changes since revision 1.23: +60 -4 lines
- Bug 6959 Automated update can be configured to skip checking for changes
  in user information for users deemed inactive.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Jan 27 22:23:18 2016 UTC (8 years, 2 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_11_3_uiuc, version_2_11_3_msu, version_2_11_3, version_2_11_2_uiuc, version_2_11_2_msu, version_2_11_2_educog, version_2_11_2
Diff to previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2 lines
- Accommodate sub-directory structure of user directories containing dot(s)
  within the first three characters of the username.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun Dec 18 01:23:21 2011 UTC (12 years, 4 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_11_1, version_2_11_0_RC3, version_2_11_0_RC2, version_2_11_0_RC1, version_2_11_0, BZ4492-merge, BZ4492-feature_horizontal_radioresponse, BZ4492-feature_Support_horizontal_radioresponse, BZ4492-Support_horizontal_radioresponse
Diff to previous 1.21: preferred, colored
Changes since revision 1.21: +9 -2 lines
- Log error if localenroll::allusers_info() returns other than 'ok'.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Oct 14 18:14:31 2011 UTC (12 years, 6 months ago) by raeburn
Branches: MAIN
CVS tags: language_hyphenation_merge, language_hyphenation
Diff to previous 1.20: preferred, colored
Changes since revision 1.20: +5 -5 lines
- &descend_tree() - new first arg ($dom).
  - required for exclusion of courseIDs as users when building %users hash

Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Oct 14 17:13:25 2011 UTC (12 years, 6 months ago) by raeburn
Branches: MAIN
Diff to previous 1.19: preferred, colored
Changes since revision 1.19: +11 -9 lines
- Make Autoupdate.pl suitable for institutions which only allow a LON-CAPA
  server to retrieve institutional user information when the user's
  username is included in the query.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Mar 26 13:19:04 2010 UTC (14 years ago) by raeburn
Branches: MAIN
CVS tags: version_2_9_X, version_2_9_1, version_2_9_0, version_2_8_99_1, version_2_10_X, version_2_10_1, version_2_10_0_RC2, version_2_10_0_RC1, version_2_10_0, loncapaMITrelate_1, PRINT_INCOMPLETE_base, PRINT_INCOMPLETE
Diff to previous 1.18: preferred, colored
Changes since revision 1.18: +6 -6 lines
- Check directory in lonUsers/$dom/$1/$2/$3/$uname is for a real user
  by testing for existence of passwd file.
- Coding style
- Use lonRole perl Var to check if current server is a library server.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Mar 25 04:36:02 2010 UTC (14 years ago) by raeburn
Branches: MAIN
Diff to previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2 lines
- Users processed in alphabetical order, so logs are easier to use.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Mar 25 04:21:32 2010 UTC (14 years ago) by raeburn
Branches: MAIN
Diff to previous 1.16: preferred, colored
Changes since revision 1.16: +2 -2 lines
- Include time zone in starting timestamp as well as ending time stamp
  for Autoupdate run.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Mar 21 21:06:00 2010 UTC (14 years, 1 month ago) by raeburn
Branches: MAIN
Diff to previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
- Bug 5805.
  - Allow existing non-empty entries for user information (lastname, middlename, firstname, generation, id and permanentemail) to be overwritten with empty entries, if field is included in $candelete array ref (new arg for lonnet::modifyuser().
  - Overwriting with empty entries allowed when:
    (a) Updating user information for a single user from "Modify User"        (domain, author or course context) - subject to domain config        for user modification.
    (b) Autoupdate.pl updates from institutional directory data,
        subject to domain config for Autoupdate.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Mar 21 20:39:30 2010 UTC (14 years, 1 month ago) by raeburn
Branches: MAIN
Diff to previous 1.14: preferred, colored
Changes since revision 1.14: +2 -2 lines
- Consistent naming for generation field.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Sep 6 02:11:46 2009 UTC (14 years, 7 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_9_99_0, version_2_8_99_0, bz6209-base, bz6209, GCI_3, GCI_2
Diff to previous 1.13: preferred, colored
Changes since revision 1.13: +6 -2 lines
- middlename and generation can be modified by Autoupdate.pl
- provide existing values for user information in fields which are not modifiable
   in call to lonnet::modifyuser() to future proof against removal of existing safeguards
   in that routine.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Mar 9 05:25:49 2009 UTC (15 years, 1 month ago) by raeburn
Branches: MAIN
CVS tags: version_2_8_X, version_2_8_2, version_2_8_1, bz5969, bz2851, GCI_1, BZ5971-printing-apage, BZ5434-fox
Diff to previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
Setting Institutional Affiliation(s).
- institutional affiliation saved as inststatus in user's environment.db is a colon-separated list of escaped affiliations.

- Domain Coordinators in user's domain (have mau priv.) can modify institutional status of a user via "Modify User" or "Upload List of Users".

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Feb 1 20:10:26 2009 UTC (15 years, 2 months ago) by raeburn
Branches: MAIN
Diff to previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2 lines
- Unescape each status type.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Nov 15 21:24:56 2007 UTC (16 years, 5 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_8_0, version_2_7_X, version_2_7_99_1, version_2_7_99_0, version_2_7_1, version_2_7_0, version_2_6_X, version_2_6_99_1, version_2_6_99_0, version_2_6_3, version_2_6_2, version_2_6_1, version_2_6_0, version_2_5_99_1, version_2_5_99_0
Diff to previous 1.10: preferred, colored
Changes since revision 1.10: +4 -38 lines
Propagating changes in ID made by Domain Coordinator to classlist.db file in any courses in which user has active or future student roles. Update name changes too.

loncommon.pm
- Pass ref to %got_rules to &user_rule_check(), so retrieval of rules only occurs once per domain. Retrieve rules for both username and ID
- &instrule_disallow_msg() takes a fourth argument ($mode) so message is different for messages generated for uploaded CSV file of users and single user modification.

loncreateuser.pm
- Propagate name changes and ID change to courses if Domain Coordinator is updating user data.
- Only display permanent e-mail on results page (no personal data changes) if one is defined.
- &print_user_modification_page() takes additional argument - $context - if domain adds the checkbox to force an ID change.

lonuserutils.pm
- check for $context was mistakenly checking $setting
- check whether Domain Coordinator wishes to change authentication for existing users should be $checkauth eq 'Yes'
- propagate name changes and ID change to courses if Domain Coordinator is updating user data, and had checked boxes for force ID change, and force course changes
- &update_classlist() moved to lonuserutils.pm from Autoupdate.pl
- &propagate_id_change() added to propagate ID and name changes to courses
- include cr (for Custom role) in option for Course roles for DC when setting filters for user lists.
- summary of filters used (displayed above tabular data) is customized to be an appropriate message for the choice of filters used in all cases.
- &Apache::lonnet::flushcourselogs() after processing adds/modifications in CSV file of users called in all contexts.

Autoupdate.pl
- &update_classlist() moved to lonuserutils.pm

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Jun 5 23:23:01 2007 UTC (16 years, 10 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_5_X, version_2_5_2, version_2_5_1, version_2_5_0, version_2_4_X, version_2_4_99_0, version_2_4_2, version_2_4_1, version_2_4_0
Diff to previous 1.9: preferred, colored
Changes since revision 1.9: +10 -10 lines
- replace limit to primary domain server with library servers only.
- filter out courseIDs from just the current server n search for real users
- iterate over the keys of the roleshash
- correct name information keys.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Jun 4 14:13:08 2007 UTC (16 years, 10 months ago) by raeburn
Branches: MAIN
Diff to previous 1.8: preferred, colored
Changes since revision 1.8: +20 -12 lines
- Include permanentemail in fields to retrieve from user's environment.db
- Get all courseIDs for domain - exclude these from users to check
- classlists toggle in domain configuration is 1 or 0 (not yes/no)
- is_course() was moved from loncommon to lonnet
- include permenentemail in fields sent to modifyuser
- write outcomes to log file

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue May 29 21:09:47 2007 UTC (16 years, 10 months ago) by raeburn
Branches: MAIN
Diff to previous 1.7: preferred, colored
Changes since revision 1.7: +3 -3 lines
Institutional status is stored as an array under the hash key of inststatus, instead of type  -- see localenroll::query_user_tables() documentation.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue May 29 21:02:21 2007 UTC (16 years, 10 months ago) by albertel
Branches: MAIN
Diff to previous 1.6: preferred, colored
Changes since revision 1.6: +6 -6 lines
- style police

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue May 29 20:43:17 2007 UTC (16 years, 10 months ago) by raeburn
Branches: MAIN
Diff to previous 1.5: preferred, colored
Changes since revision 1.5: +12 -4 lines
- Initialize language handler
- Logging to an autoupdate.log file

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri May 11 17:25:28 2007 UTC (16 years, 11 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_3_99_0
Diff to previous 1.4: preferred, colored
Changes since revision 1.4: +8 -1 lines
Only run Autoupdate for the domain if the server is the primary library server for the domain.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Apr 3 17:51:52 2007 UTC (17 years ago) by raeburn
Branches: MAIN
Diff to previous 1.3: preferred, colored
Changes since revision 1.3: +10 -3 lines
- lonsql
  - Need to escape results from userlog queries (escaping of all results from lonsql eliminated in 1.50).
  - Allow filtering of user's activity.log for 'Role'
  - Include host in information returned for userlog query

- Autoupdate.pl
  - &lonnet::get_my_roles() by default gets roles from nohist_userroles.  Use in Autoupdate wants information about a user's own roles (from roles.db) - use context as argument
  - warning messagea when username changed (assumes fixed student ID). prints to screen
for now (log to file would be preferred)

- lonnet.pm
  - documentation for &userfileupload
  - get_my_roles() now includes optional context which determines which db file is target for dump (default is nohist_userroles, context of 'userroles' sets target to roles.db
  - documentation for &userlog_query() - now includes hostID
  - documentation updated for &get_my_roles().

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Mar 1 19:20:45 2007 UTC (17 years, 1 month ago) by raeburn
Branches: MAIN
Diff to previous 1.2: preferred, colored
Changes since revision 1.2: +1 -0 lines
Adding cvs version header.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Feb 26 20:52:55 2007 UTC (17 years, 1 month ago) by raeburn
Branches: MAIN
Diff to previous 1.1: preferred, colored
Changes since revision 1.1: +76 -17 lines
Support automated update of instiutional users in a domain, based on domain preferences.
Autoupdate.pl --
- Institutional data now gathered for all users in a single call to localenroll.
- Correction to check to see if Autoupdate should run
- Accumulate updateable fields for all institutional types with which user is affiliated
- Use modifyuser() in lonnet to store updated user information
- affiliations_check() checks for changes in institutional status

localenroll.pm --
- correct documentation for instcodes hash reference
- allusers_info() - retrieve institutional user data for all users.
- get_userinfo() - retrieve institutional data for a single username or ID
- inst_usertypes() - provide institutional types (short and long titles).

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Feb 16 01:37:54 2007 UTC (17 years, 2 months ago) by raeburn
Branches: MAIN
First pass at a script to update user information based on an institutional datafeed. Will require a get_userinfo() routine in localenroll.pm which will retrieve the user's data from the institutional source. Work in progress.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>