FAQ | This is a LIVE service | Changelog

Commit 77e9d1af authored by Robin Goodall's avatar Robin Goodall 💬
Browse files

Spell-check!

parent 7b465b76
# Lookup Membership Synchronisation Tool
Tool to query Lookup for CHRIS and CAMSIS insitutional membership.
Tool to query Lookup for CHRIS and CamSIS institutional membership.
> This tool is incomplete.
......@@ -16,9 +16,9 @@ pip3 install --user https://gitlab.developers.cam.ac.uk/uis/devops/iam/ibis/memb
See the output from `--help` for usage.
## Programattic use
## Programmatic use
This tool can also be called programatically by importing the `main` function
This tool can also be called programmatically by importing the `main` function
and calling it with command line arguments:
```python
......
......@@ -82,7 +82,7 @@ def _student_inst_members(opts):
session = _create_api_gateway_session(opts)
# Fetch insitutional mapping and pre-compute a dict mapping
# Fetch institutional mapping and pre-compute a dict mapping
# institution.v1.student-records.university.identifiers.cam.ac.uk ids to lookup instids.
r = session.get(INST_MAPPING_API_ROOT)
r.raise_for_status()
......@@ -94,7 +94,7 @@ def _student_inst_members(opts):
except ValueError:
LOG.warn('Ignoring identifier with non-email formatting: %s', i)
continue
# TODO: looks like the scheme returned by the insitutional map API doesn't match the
# TODO: looks like the scheme returned by the institutional map API doesn't match the
# scheme returned by the student API?
if scheme == 'institution.v1.student.university.identifiers.cam.ac.uk':
inst_map[value] = datum['instid']
......@@ -104,7 +104,7 @@ def _student_inst_members(opts):
# are Lookup instids and student identifiers are those with scheme
# person.v1.student-records.university.identifiers.cam.ac.uk.
#
# Note that since students can be members of more than one insitution, the sum of the lengths
# Note that since students can be members of more than one institution, the sum of the lengths
# of each sets may not equal the length of the union of all of the sets.
students_by_inst = {}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment