Commit Graph

69 Commits

Author SHA1 Message Date
Jon
de53948cea test: confirm that the tenancymanager is called
!43
2024-07-21 13:27:45 +09:30
Jon
5a201ef548 refactor!: Squash database migrations
BREAKING CHANGE: squashed DB migrations in preparation for v1.0 release.

!40 !35 #74
2024-07-16 13:31:18 +09:30
Jon
7b26fac73d feat: Administratively set global items org/is_global field now read-only
!42 fixes #126
2024-07-16 13:19:30 +09:30
Jon
7c62309a31 fix(core): migrate manufacturer to use new form/view logic
!42 fixes #127
2024-07-16 11:55:25 +09:30
Jon
621cbd2d71 revert: return organization filtering back to forms
!42 #124
2024-07-16 00:02:45 +09:30
Jon
d8e89bee10 test: tenancy objects
!42 #15 closes #124
2024-07-15 23:22:15 +09:30
Jon
4ee62aa399 test: refactor to single abstract model for inclusion.
!42 #15
2024-07-15 23:01:49 +09:30
Jon
f1201e8933 feat(access): Add multi-tennant manager
manager filters results to that of data from the organizations the users is part of.

!42 #124
2024-07-15 16:17:08 +09:30
Jon
a7168834ba chore: add new exception MissingAttribute
used for development

!35
2024-07-14 02:52:28 +09:30
Jon
4c42f77692 feat(core): Filter every form field if associated with an organization to users organizations only
!35 fixes #119
2024-07-14 01:08:00 +09:30
Jon
367c4bebb6 refactor: adjust views missing add/change form to now use forms
!35 #15 #46 #74 #120 #121 fixes #118
2024-07-13 17:32:45 +09:30
Jon
1cf15f7339 feat(core): add var template_name to common view template for all views that require it
!35
2024-07-13 16:01:12 +09:30
Jon
f29ec63f46 test: Add Test case abstract classes to models
!35 #46 #15
2024-07-13 16:01:12 +09:30
Jon
c057ffdc9c feat(core): add Display view to common forms abstract class
intended to display generic data

!35
2024-07-12 12:47:17 +09:30
Jon
45cc34284a feat(core): only display navigation menu item if use can view model
!35 fixes #114
2024-07-12 07:16:05 +09:30
Jon
7d172fb4af refactor: migrate views to use new abstract model view classes
!35 fixes #111
2024-07-12 05:50:36 +09:30
Jon
f848d01b34 refactor: migrate forms to use new abstract model form class
!35
2024-07-12 05:47:49 +09:30
Jon
44f20b28be feat(core): add common forms abstract class
form class for inclusion in our forms

!35
2024-07-12 05:45:39 +09:30
Jon
2e22a484a0 feat(core): add common views abstract class
class for our views

!35
2024-07-12 05:03:11 +09:30
Jon
fea7ea3119 refactor: rename field "model notes" -> "Notes"
!35 fixes #102 #104
2024-07-11 13:58:14 +09:30
Jon
5f4231ab04 test(view): view permission checks
!39 #76
2024-07-09 02:29:35 +09:30
Jon
b42bb3a30e feat(access): enable non-organization django permission checks
!39 #76
2024-07-09 02:26:21 +09:30
Jon
090c4a5425 feat(settings): Add celery task results index and view page
!39 #76
2024-07-08 22:52:34 +09:30
Jon
4fdb3df06e test: Unit Tests TenancyObjects
!33 #15
2024-06-20 03:12:43 +09:30
Jon
58b134ae30 refactor(tests): move unit tests to unit test sub-directory
!33 #15
2024-06-19 22:58:50 +09:30
Jon
50384044c8 test(core): test cases for notes permissions
!33 #15
2024-06-19 17:08:42 +09:30
Jon
4e42856027 fix(api): inventory upload requires sanitization
!33
2024-06-19 15:00:30 +09:30
Jon
a6e569eaef test(core): skip invalid tests
tests for notes belong within the models that rx notes

!27 #15 #52
2024-06-17 14:46:48 +09:30
Jon
44afa4f7de test(core): tests for manufacturer history entries
!27 #15
2024-06-17 14:06:25 +09:30
Jon
2be4810ed4 test: move manufacturer to it's parent
!27
2024-06-17 13:59:21 +09:30
Jon
f861295b1c docs(development): add device model to api docs
!27
2024-06-16 06:26:37 +09:30
Jon
ceb1929d8c test: refactor history permission tests to use an abstract class of test cases
!27 #15
2024-06-16 01:43:07 +09:30
Jon
5eec41fe57 docs(development): Add test case documentation
!27 #15 nofusscomputing/infrastructure/website-template!16 nofusscomputing/projects/django_template#57 nofusscomputing/projects/gitlab-ci!83
2024-06-16 00:15:01 +09:30
Jon
6286b06270 test: refactor history entry to have test cases in abstract classes
!27 #15
2024-06-15 18:50:10 +09:30
Jon
34db5f863a test: add placeholder tests
!27 #15
2024-06-15 16:31:23 +09:30
Jon
54c34a95f5 fix(core): dont attempt to access parent_object if 'None' during history save
!27
2024-06-15 16:19:55 +09:30
Jon
0a1aba7ca8 fix(core): overridden save within SaveHistory to use default attributes
!27
2024-06-15 14:09:17 +09:30
Jon
8b47d95614 feat(core): add skeleton http browser
get and post intrim functions

!26 #58
2024-06-14 02:20:33 +09:30
Jon
7239f572a3 fix(core): on object delete remove history entries
!25 fixes #54
2024-06-13 23:38:30 +09:30
Jon
ca8e0c07ea feat(base): Add a notes field to TenancyObjetcs class
!21 #13
2024-06-12 05:57:37 +09:30
Jon
8d6826f7c0 fix(core): Add overrides for delete so delete history saved for items with parent model
!22 fixes #53
2024-06-10 02:44:57 +09:30
Jon
fe0696fee6 feat(models): add property parent_object to models that have a parent
!22
2024-06-10 00:51:59 +09:30
Jon
1069211d1b feat(config_management): add config group software to group history
!22 #43
2024-06-08 08:30:55 +09:30
Jon
95a08b2d2c refactor: adjust template block names
renamed so they make sense

!20
2024-06-07 20:01:56 +09:30
Jon
eb6ae13c58 feat(core): support more history types
!18
2024-06-06 01:43:57 +09:30
Jon
f053b9c6a8 test: refactor core test layout
!18 #48 #15
2024-06-05 23:47:31 +09:30
Jon
4cafa34d69 fix(core): correct history view permissions
!18 #48 #15
2024-06-05 23:44:48 +09:30
Jon
46bdd488ec feat(core): function to fetch history entry item
required for the checking of user permissions against the organization

!18 #48 #15
2024-06-05 23:44:17 +09:30
Jon
2c1bbbfc15 fix(config_management): set config dict keys to be valid ansible variables
!18 fixes #47
2024-06-05 19:05:32 +09:30
Jon
fff51e38d2 feat(config_management): Ability to add a host to a config group
!17 #42
2024-06-03 06:25:30 +09:30