added codebase, project rules and sec audit
This commit is contained in:
10
NearBeach/docs/007-misc/cache-busting/cache-busting.rst
Normal file
10
NearBeach/docs/007-misc/cache-busting/cache-busting.rst
Normal file
@@ -0,0 +1,10 @@
|
||||
Cache Busting
|
||||
#############
|
||||
|
||||
.. note::
|
||||
|
||||
If you have NearBeach installed through Docker, you will not need to do these steps. This is design for those who have manually installed NearBeach.
|
||||
|
||||
|
||||
If you are hosting your own static files, you'll notice that the old static files will not update after an upgrade due to cache. A hard reset will work, however not ideal. The best solution to fix this would be to `Implement ManifestStaticFilesStorage in the Settings file <https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#django.contrib.staticfiles.storage.ManifestStaticFilesStorage>`_.
|
||||
Please follow the instructions on the Django Documentation linked.
|
||||
@@ -0,0 +1,55 @@
|
||||
Fixture Object Assignment
|
||||
#########################
|
||||
|
||||
The below table describes each object and who can gain access to that object.
|
||||
|
||||
+--------------------+----+----------+---------+
|
||||
| Object | ID | Group(s) | User(s) |
|
||||
+====================+====+==========+=========+
|
||||
| Organisation | 1 | __all__ | __all__ |
|
||||
+--------------------+----+----------+---------+
|
||||
| Customer | 1 | __all__ | __all__ |
|
||||
+--------------------+----+----------+---------+
|
||||
| Kanban Board | 1 | Admin | Admin |
|
||||
+--------------------+----+----------+---------+
|
||||
| Kanban Board | 2 | QA Team | __all__ |
|
||||
+--------------------+----+----------+---------+
|
||||
| Project | 1 | Admin | Admin |
|
||||
+--------------------+----+----------+---------+
|
||||
| Project | 2 | QA Team | __all__ |
|
||||
+--------------------+----+----------+---------+
|
||||
| Requirement | 1 | Admin | Admin |
|
||||
+--------------------+----+----------+---------+
|
||||
| Requirement | 2 | QA Team | __all__ |
|
||||
+--------------------+----+----------+---------+
|
||||
| Task | 1 | Admin | Admin |
|
||||
+--------------------+----+----------+---------+
|
||||
| Task | 2 | QA Team | __all__ |
|
||||
+--------------------+----+----------+---------+
|
||||
| Request for Change | 1 | Admin | Admin |
|
||||
+--------------------+----+----------+---------+
|
||||
| Request for Change | 2 | QA Team | __all__ |
|
||||
+--------------------+----+----------+---------+
|
||||
|
||||
.. note::
|
||||
|
||||
The `__all__` defines that every single user will have access.
|
||||
|
||||
|
||||
.. note::
|
||||
|
||||
In the near future - __all__ will need to be change to each individual user. Because there will be some users that have no access
|
||||
|
||||
The below table defines the SUB objects, and what object they are connected to above. These objects will inherit the permissions above.
|
||||
|
||||
+--------+----+---------------+-----------+
|
||||
| Object | ID | Parent Object | Parent ID |
|
||||
+========+====+===============+===========+
|
||||
| Card | 1 | Kanban Board | 1 |
|
||||
+--------+----+---------------+-----------+
|
||||
| Card | 2 | Kanban Board | 2 |
|
||||
+--------+----+---------------+-----------+
|
||||
| R Item | 1 | Requirement | 1 |
|
||||
+--------+----+---------------+-----------+
|
||||
| R Item | 2 | Requirement | 2 |
|
||||
+--------+----+---------------+-----------+
|
||||
84
NearBeach/docs/007-misc/fixtures/fixture-standards.rst
Normal file
84
NearBeach/docs/007-misc/fixtures/fixture-standards.rst
Normal file
@@ -0,0 +1,84 @@
|
||||
Fixture Standards
|
||||
#################
|
||||
|
||||
The following document is to outline the structure of the fixtures.
|
||||
So if we need to expand the fixtures, it can easily be matched
|
||||
with the unit tests.
|
||||
|
||||
Objects Assiged to Administrators
|
||||
---------------------------------
|
||||
|
||||
Any Objects with an ID of 1, will be assigned to just the
|
||||
Administrators (admin group). No other use shall have access
|
||||
to these objects.
|
||||
|
||||
This applies for the following objects
|
||||
|
||||
#. Kanban Board
|
||||
#. Project
|
||||
#. Request for Change
|
||||
#. Requirement
|
||||
#. Task
|
||||
|
||||
Tests should be used to determine other users do not have
|
||||
access
|
||||
|
||||
Objects Assiged to Team Members
|
||||
-------------------------------
|
||||
|
||||
Any Objects with an ID 2, will be assigned to Team Members
|
||||
group. Any user that is assigned to this team members group
|
||||
will be able to access the object.
|
||||
|
||||
This applies to the following objects
|
||||
|
||||
#. Kanban Board
|
||||
#. Project
|
||||
#. Request for Change
|
||||
#. Requirement
|
||||
#. Task
|
||||
|
||||
Test should be used to determine;
|
||||
|
||||
#. Administrators can access the objects
|
||||
#. Any user in the team members group can access the objects
|
||||
#. Any user who is not assigned to the team members (excluding admin), can NOT access objects
|
||||
|
||||
|
||||
Object Assigned to Empty Group
|
||||
------------------------------
|
||||
|
||||
Any Objects with an ID of 3, will be assigned to an empty group
|
||||
where there are no users assigned.
|
||||
|
||||
This applies to the following objects
|
||||
|
||||
#. Kanban Board
|
||||
#. Project
|
||||
#. Request for Change
|
||||
#. Requirement
|
||||
#. Task
|
||||
|
||||
Test should be used to determine;
|
||||
|
||||
#. Administrators can access the objects
|
||||
#. Any user not in the empty group can NOT access the objects
|
||||
|
||||
|
||||
Misc Notes
|
||||
----------
|
||||
|
||||
The following objects are excluded from the rules;
|
||||
|
||||
#. Cards
|
||||
#. Notes
|
||||
#. Requirement items
|
||||
#. Any sub object
|
||||
|
||||
|
||||
Creating Fixture Command
|
||||
------------------------
|
||||
|
||||
Use the following command to help create the fixtures.
|
||||
|
||||
`python3 manage.py dumpdata --exclude contenttypes --exclude auth.permission --exclude admin.logentry --indent 2 > ./NearBeach/fixtures/NearBeach_****_setup.json`
|
||||
11
NearBeach/docs/007-misc/index.rst
Normal file
11
NearBeach/docs/007-misc/index.rst
Normal file
@@ -0,0 +1,11 @@
|
||||
.. _misc_index:
|
||||
|
||||
Misc Information
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 0
|
||||
:caption: Misc Information
|
||||
|
||||
Cache Busting </007-misc/cache-busting/cache-busting>
|
||||
Fixture Standards </007-misc/fixtures/fixture-standards>
|
||||
Fixture Object Assignment </007-misc/fixtures/fixture-object-assignment>
|
||||
Reference in New Issue
Block a user