kosiakkatrina
0b55fd93d3
CLDC-1800 Update provider relationships permissions ( #1729 )
...
* Do not allow adding stock owners as data providers
* Do not allow removing stock owners as data providers
* Do not allow adding managing agents as data providers
* Do not allow removing managing agents as data providers and fix remove_stock_owner
* Authorise add managing agent/stock owner pages
* Refactor organisation_relationship_policy
* Update test names
* Refactor policy and remove headers from tests
2 years ago
natdeanlewissoftwire
b855a2987e
change housing provider -> stock owner ( #1104 )
...
* change housing provider -> stock owner
* feat: add case and _ replacements
* refactor: rename files
* refactor: - changes
* housing provider
* refactor: registered ... renaming
2 years ago
natdeanlewissoftwire
07f345df71
CLDC-1730-stock-owning-validation ( #1073 )
...
* feat: add error message if org doesn't own stock
* feat: move org relationship errors to model
* feat: use correct model for form
* tests: update params in tests
* feat: add specific fields for parent/child errors
* test: fix params in failing tests
* refactor: unrelated linting
* feat: simplify controller behaviour further
* test: address failing tests
* feat: add copy to en.yml
* feat: add updated validation message and rename related housing provider -> stock owner
2 years ago
Phil Lee
3b99974627
[1711] Orgs parent-child relationship now atomic ( #1019 )
...
* remove Organisation#relationship_type
* add indexes and fk constraints to org relations
* remove relationship_type from seeds
- as these have now been removed
* seeding is now idempotent
2 years ago
Jack S
2642afd036
[CLDC-1660] Remove managing agent ( #961 )
2 years ago
natdeanlewissoftwire
ccf4e91295
Cldc 1663 remove housing provider ( #957 )
...
* wip
* Rename managing_agents column
* add managing relationship
* f
* feat: add my features branched off managing agents branch
* feat: update nav behaviour
* feat: simplify housing_providers view
* feat: fix pluralise to default to plural rather than singular
* feat: remove managing agent related code so can be merged directly
* tests: update tests and add new ones for housing_providers
* refactor: rubocop conciliation
* tests: fix failing navigation tests
* tests: one more plural test
* refactor: erb linting
* refactor: erb linting
* feat: right-align "Remove" text
* feat: update nokogiri to pass bundler-audit
* feat: grey out search button
* feat: remove section-break
* feat: add housing provider page with details and button
* feat: tidy up routing
* feat: add wip housing provider behaviour without functioning search
* feat: wip add housing provider functionality hard coded to add FooBar LTD as provider to DLUHC
* feat: remove redundant code
* feat: add data passing behaviour without accessible autocomplete
* feat: use accessible autocomplete (not working)
* feat: use accessible autocomplete (now working)
* feat: wip commit error messages
* feat: add banner always
* feat: add conditional banner behaviour, back link and update logs titles
* feat: add search icon to accessible autocomplete, make hint text aligned correctly
* feat: use pluck not all
* tests: add initial test
* feat: refactor create logic
* feat: add sub org title
* feat: add correct no housing providers text
* feat: add correct no housing providers text
* tests: add tests for add housing provider page
* feat: remove unnecessary line from controller
* fet: simplify controller args
* fet: update schema
* feat: update schema
* feat: add core removal functionality
* fix: make secondary navbar display selected org not user org for support users
* refactor: tidy up code and add single quotes instead of apostrophes
* refactor: remove unnecessary lines
* test: add housing provider removal tests
* feat: use path helpers and beng methods
* refactor: linting
* refactor: erblinting
* refactor: renaming and tidying
* refactor: simplify format response and paths and remove redundant rendering
* feat: user flash notices instead of explicit notification banners
* test: update tests with new urls
* feat: add target org helper
* feat: add target org helper fix
* feat: add related org helper
* test: update paths in tests
Co-authored-by: Jack S <jacopo.scotti@softwire.com>
2 years ago
Jack S
38f1cada5d
[CLDC-1659] Create managing agents ( #956 )
...
* Add managing agent
* tidy up specs
* Address comments
* linter
2 years ago
natdeanlewissoftwire
b45b98108a
Cldc 1662 add housing provider ( #954 )
...
* wip
* Rename managing_agents column
* add managing relationship
* f
* feat: add my features branched off managing agents branch
* feat: update nav behaviour
* feat: simplify housing_providers view
* feat: fix pluralise to default to plural rather than singular
* feat: remove managing agent related code so can be merged directly
* tests: update tests and add new ones for housing_providers
* refactor: rubocop conciliation
* tests: fix failing navigation tests
* tests: one more plural test
* refactor: erb linting
* refactor: erb linting
* feat: right-align "Remove" text
* feat: update nokogiri to pass bundler-audit
* feat: grey out search button
* feat: remove section-break
* feat: add housing provider page with details and button
* feat: tidy up routing
* feat: add wip housing provider behaviour without functioning search
* feat: wip add housing provider functionality hard coded to add FooBar LTD as provider to DLUHC
* feat: remove redundant code
* feat: add data passing behaviour without accessible autocomplete
* feat: use accessible autocomplete (not working)
* feat: use accessible autocomplete (now working)
* feat: wip commit error messages
* feat: add banner always
* feat: add conditional banner behaviour, back link and update logs titles
* feat: add search icon to accessible autocomplete, make hint text aligned correctly
* feat: use pluck not all
* tests: add initial test
* feat: refactor create logic
* feat: add sub org title
* feat: add correct no housing providers text
* feat: add correct no housing providers text
* tests: add tests for add housing provider page
* feat: remove unnecessary line from controller
* fet: simplify controller args
* fet: update schema
* feat: update schema
* feat: remove create_managing_agent
* test: add support user tests
* test: add create_housing_provider tests
* refactor: rubocop autocorrect
* refactor: erblinting
* test: fix tests
* refactor: erblinting
* feat: don't use !important tag
Co-authored-by: Jack S <jacopo.scotti@softwire.com>
2 years ago
Jack S
c710d642cc
[CLDC-1659] new managing agent page ( #948 )
...
* Add managing agents page
* Rubocop fixes
2 years ago
natdeanlewissoftwire
4aede34cf0
Cldc 1661 housing providers branch ( #950 )
...
* wip
* Rename managing_agents column
* add managing relationship
* f
* feat: add my features branched off managing agents branch
* feat: update nav behaviour
* feat: simplify housing_providers view
* feat: fix pluralise to default to plural rather than singular
* feat: remove managing agent related code so can be merged directly
* tests: update tests and add new ones for housing_providers
* refactor: rubocop conciliation
* tests: fix failing navigation tests
* tests: one more plural test
* refactor: erb linting
* refactor: erb linting
* feat: right-align "Remove" text
* feat: update nokogiri to pass bundler-audit
* feat: grey out search button
* feat: remove section-break
Co-authored-by: Jack S <jacopo.scotti@softwire.com>
2 years ago