Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give external users an institution #79

Open
wants to merge 544 commits into
base: master
Choose a base branch
from

Conversation

markgdawson
Copy link
Contributor

I'm creating a pull request to track work on this branch. It still has several tests failing, but is a (small) start toward this. I wanted to see mostly how much work it would be - and the answer seems to be "not too much".

The issue is that currently behavior is determined from the institution, which is determined by the tech_lead institution. If the tech_lead is an external user, then it is unclear what behavior should be adopted and cogs will occasionally break.

There are a few possibilities. One would be always check that user is not an external user (which is possible). Maybe a better option would be to assign each external users an institution (and therefore a behavior).

edbennett and others added 30 commits August 1, 2019 11:16
Finalised version of Ben's code
removed atomic=False from migrations
tidy up definition of owner in funding
…ons with funding workflow

currently owning institution project reference is used to refer to the finance code of a grant associated with the project, and not much else.
with the attribution workflow providing a dedicated place for finance codes, this field is now redundant so should not be shown for institutions
opted in to teh new workflow.
this should be OK for all institutions since it's an optional field,
and it will stop the tests breaking for institutions opted into the
priority workflow.
Some business logic must be understood. The website behaves strangely
now.
use a manual filter rather than relying on the Model in AttributionListView
Remove institutional reference from project form for attribution workflow users
update details of repositories for Aberystwyth (fix edbennett#67)
Issues in templates/project/application_details.html.
Non existing data members do not cause visible errors in templates.
(CustomUser.institution does not exist, it's
CustomUser.profile.institution that exists instead)

Also indentation and unterminated <small> tag in template.
edbennett and others added 30 commits August 13, 2019 16:47
This avoids key constraints on existing data, but there might be better ways of doing this.
add legacy_funding_body to Project model
refactor Project.AP() and add unit tests for it
This reverts commit e5ad609.

I had made this change to test/check accidentally pushed change to master.
Reverting doesn't work, and should be left as it is
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