<feed xmlns='http://www.w3.org/2005/Atom'>
<title>genenetwork3/tests/unit/auth/test_groups.py, branch migrate-to-python3.10</title>
<subtitle>GeneNetwork3 REST API for data science and machine learning
</subtitle>
<id>http://git.genenetwork.org/genenetwork3/atom?h=migrate-to-python3.10</id>
<link rel='self' href='http://git.genenetwork.org/genenetwork3/atom?h=migrate-to-python3.10'/>
<link rel='alternate' type='text/html' href='http://git.genenetwork.org/genenetwork3/'/>
<updated>2023-07-10T08:36:47+00:00</updated>
<entry>
<title>Fix linting errors caused by bump to Python 3.10</title>
<updated>2023-07-10T08:36:47+00:00</updated>
<author>
<name>Frederick Muriuki Muriithi</name>
</author>
<published>2023-07-10T08:36:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.genenetwork.org/genenetwork3/commit/?id=c6ac30d4ccc26553a12e8c37cdf9078cbe9084b3'/>
<id>urn:sha1:c6ac30d4ccc26553a12e8c37cdf9078cbe9084b3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>auth: Roles: Check for editability</title>
<updated>2023-04-25T06:42:36+00:00</updated>
<author>
<name>Frederick Muriuki Muriithi</name>
</author>
<published>2023-04-25T06:42:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.genenetwork.org/genenetwork3/commit/?id=8471ed1187a8abc5e28207776c5f49a59ba24b92'/>
<id>urn:sha1:8471ed1187a8abc5e28207776c5f49a59ba24b92</id>
<content type='text'>
Some roles should not be user-editable, and as such, we need to check before
allowing any edits on such roles. This commit makes that possible.
</content>
</entry>
<entry>
<title>auth: redis data: migrate data in redis</title>
<updated>2023-03-09T11:24:30+00:00</updated>
<author>
<name>Frederick Muriuki Muriithi</name>
</author>
<published>2023-03-09T11:24:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.genenetwork.org/genenetwork3/commit/?id=726460a2ca4817a1b7a5c7798147996d7b7e5e2d'/>
<id>urn:sha1:726460a2ca4817a1b7a5c7798147996d7b7e5e2d</id>
<content type='text'>
Implement the code to migrate the data from redis to SQLite.
</content>
</entry>
<entry>
<title>auth: tests: mock token acquisition. Fix minor bugs.</title>
<updated>2023-02-03T12:15:26+00:00</updated>
<author>
<name>Frederick Muriuki Muriithi</name>
</author>
<published>2023-02-03T12:15:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.genenetwork.org/genenetwork3/commit/?id=e6dd74a3fab65355c0aa187ee31d5ee74a888649'/>
<id>urn:sha1:e6dd74a3fab65355c0aa187ee31d5ee74a888649</id>
<content type='text'>
</content>
</entry>
<entry>
<title>auth: Reorganise modules/packages for easier dev and maintenance</title>
<updated>2023-02-02T09:03:51+00:00</updated>
<author>
<name>Frederick Muriuki Muriithi</name>
</author>
<published>2023-02-02T08:35:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.genenetwork.org/genenetwork3/commit/?id=dfe5eb18e3ec8dc570d118bfe95c5d4dcb2c7575'/>
<id>urn:sha1:dfe5eb18e3ec8dc570d118bfe95c5d4dcb2c7575</id>
<content type='text'>
Split the views/routes into separate modules each dealing with a narrower
scope of the application to aid in maintenance, and help with making the
development easier.
</content>
</entry>
<entry>
<title>auth: create group: Fix group creation.</title>
<updated>2023-01-23T11:30:20+00:00</updated>
<author>
<name>Frederick Muriuki Muriithi</name>
</author>
<published>2023-01-23T11:30:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.genenetwork.org/genenetwork3/commit/?id=b9139c2356f75103bc5fd17f074f4ee0e74b64aa'/>
<id>urn:sha1:b9139c2356f75103bc5fd17f074f4ee0e74b64aa</id>
<content type='text'>
* gn3/auth/authorisation/checks.py: Enable passing user to authorisation
  checking function. Raise error on authorisation failure for consistent error
  handling.
* gn3/auth/authorisation/groups.py: Add user to group, updating the privileges
  as appropriate.
* gn3/auth/authorisation/resources.py: Fix resources querying
* gn3/auth/authorisation/roles.py: Assign/revoke roles by name
* gn3/auth/authorisation/views.py: Create group
* migrations/auth/20221108_01_CoxYh-create-the-groups-table.py: Add
  group_metadata field
* tests/unit/auth/fixtures/group_fixtures.py: fix tests
* tests/unit/auth/test_groups.py: fix tests
* tests/unit/auth/test_resources.py: fix tests
* tests/unit/auth/test_roles.py: fix tests
</content>
</entry>
<entry>
<title>auth: Fix tests after enforcing FOREIGN KEY constraint</title>
<updated>2023-01-18T11:59:35+00:00</updated>
<author>
<name>Frederick Muriuki Muriithi</name>
</author>
<published>2023-01-18T11:59:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.genenetwork.org/genenetwork3/commit/?id=4cc328ef78c7b8108d7623fdd4fcae5294317f2e'/>
<id>urn:sha1:4cc328ef78c7b8108d7623fdd4fcae5294317f2e</id>
<content type='text'>
Fix a number of tests and fixtures that were not conforming to the FOREIGN KEY
constraints:

* Each test that creates a new "object" needs to clean up after itself
* Each fixture that sets up test data needs to clean up after itself
</content>
</entry>
<entry>
<title>auth: update privileges format</title>
<updated>2023-01-16T09:14:24+00:00</updated>
<author>
<name>Frederick Muriuki Muriithi</name>
</author>
<published>2023-01-16T09:14:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.genenetwork.org/genenetwork3/commit/?id=98dc0c5b1a67a7c7b97a1fa02211e9f99360edce'/>
<id>urn:sha1:98dc0c5b1a67a7c7b97a1fa02211e9f99360edce</id>
<content type='text'>
Save privileges with ids of the form &lt;top-level&gt;:&lt;sub-level&gt;:&lt;privilege-name&gt;
rather than using a UUID, to reduce indirection levels.

* migrations/auth/20230116_01_KwuJ3-rework-privileges-schema.py: new migration
  to change the schema and IDs for the privileges.
* Update code to use new privileges format
  * gn3/auth/authorisation/checks.py
  * gn3/auth/authorisation/groups.py
  * gn3/auth/authorisation/privileges.py
  * gn3/auth/authorisation/resources.py
  * gn3/auth/authorisation/roles.py
  * migrations/auth/20230116_01_KwuJ3-rework-privileges-schema.py
  * tests/unit/auth/fixtures/role_fixtures.py
  * tests/unit/auth/test_groups.py
  * tests/unit/auth/test_privileges.py
  * tests/unit/auth/test_roles.py
</content>
</entry>
<entry>
<title>auth: rename fixtures: test_* -&gt; fxtr_*</title>
<updated>2023-01-03T03:16:28+00:00</updated>
<author>
<name>Frederick Muriuki Muriithi</name>
</author>
<published>2023-01-03T02:49:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.genenetwork.org/genenetwork3/commit/?id=da33d719105d67afb1ee6b040380211cfa8be23d'/>
<id>urn:sha1:da33d719105d67afb1ee6b040380211cfa8be23d</id>
<content type='text'>
Since test functions are defined starting with "test_", rename the fixture to
more clearly indicate it is a fixture (fxtr_*), an not a test in itself.
</content>
</entry>
<entry>
<title>auth: pass cursor object to `user_group` function</title>
<updated>2022-12-12T10:29:45+00:00</updated>
<author>
<name>Frederick Muriuki Muriithi</name>
</author>
<published>2022-12-12T10:29:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.genenetwork.org/genenetwork3/commit/?id=56b54da6fc6e97d5d6dac70f2393dcc98d93991c'/>
<id>urn:sha1:56b54da6fc6e97d5d6dac70f2393dcc98d93991c</id>
<content type='text'>
</content>
</entry>
</feed>
