Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
17fdddf8
Commit
17fdddf8
authored
5 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Plain Diff
Merge branch 'contributing' into 'master'
Update contribution guidelines See merge request AlekSIS/AlekSIS!126
parents
ca7262f5
64df90a0
No related branches found
No related tags found
1 merge request
!126
Update contribution guidelines
Pipeline
#682
canceled
5 years ago
Stage: test
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CONTRIBUTING.rst
+105
-11
105 additions, 11 deletions
CONTRIBUTING.rst
with
105 additions
and
11 deletions
CONTRIBUTING.rst
+
105
−
11
View file @
17fdddf8
...
@@ -36,6 +36,12 @@ To ensure code is styled correctly, before commiting, run::
...
@@ -36,6 +36,12 @@ To ensure code is styled correctly, before commiting, run::
tox -e reformat
tox -e reformat
Text documents
~~~~~~~~~~~~~~
If there is no objective reason against it, all text documents accompanying
the source use `reStructuredText`_.
Working with the Git repository
Working with the Git repository
-------------------------------
-------------------------------
...
@@ -44,18 +50,34 @@ The Git repository shall be used as a historic documentation of development
...
@@ -44,18 +50,34 @@ The Git repository shall be used as a historic documentation of development
and as change management. It is important that the Git commit history
and as change management. It is important that the Git commit history
describes waht was changed, by whom and why.
describes waht was changed, by whom and why.
Feature branches
Help and information on Git for beginners are available in the `Git guide`_
~~~~~~~~~~~~~~~~
Feature and issue branches
~~~~~~~~~~~~~~~~~~~~~~~~~~
All features and bug fixes should be developed in their own branch and later
All features and bug fixes should be developed in their own branch and later
merged into the master branch as a whole. Of course, sometimes, it is
merged into the master branch as a whole. Of course, sometimes, it is
sensible to not do that, e.g. for fixing mere typos and the like
sensible to not do that, e.g. for fixing mere typos and the like
.
W
I
thin the feature branch, every logical step should be commited separately.
W
i
thin the feature branch, every logical step should be commited separately.
It is neither required nor desired to do micro-commits about every
It is neither required nor desired to do micro-commits about every
development step. The commit history should describe the trains of thought
development step. The commit history should describe the trains of thought
the design and implementation is based on.
the design and implementation is based on.
If you work on multiple issues at the same time, you have to change between
branches. Never work on unrelated issues in the same branch.
Branches should either contain the number and title of the related issue (as
generated by GitLab), or follow the naming convention type/name, where type
is one of bugfix, feature, or refactor.
All changes on the code should be commited and pushed before stopping work on
in order to prevent data loss. If a logical step is continued later, you
should amend and force-push the commit.
Issue branches should be rebased onto the current master regularly to avoid
merge conflicts.
Commit messages
Commit messages
~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~
...
@@ -72,6 +94,25 @@ square brackets if it relates to a certain part of the repository, e.g. [CI]
...
@@ -72,6 +94,25 @@ square brackets if it relates to a certain part of the repository, e.g. [CI]
when changing CI/CD configuration or support code, [Dev] when changing
when changing CI/CD configuration or support code, [Dev] when changing
something in the development utilities, etc.
something in the development utilities, etc.
Example::
Solve LDAP connection problems
- Add the ldap-with-unicorn-dust dependency
- Configure settings.py to accept the correct groups from LDAP
Closes #10.
Merge Requests
~~~~~~~~~~~~~~
If you think that the work on your feature branch is finished, you have to
create a merge request on EduGit in order to let other developers and the
maintainers take a look at it.
See below on how to submit patches if you cannot use the development
platform.
Manifestos governing development
Manifestos governing development
--------------------------------
--------------------------------
...
@@ -89,9 +130,8 @@ probably governed by laws defining what and when to store. In that case,
...
@@ -89,9 +130,8 @@ probably governed by laws defining what and when to store. In that case,
giving the user control over these decisions is not possible. Developers
giving the user control over these decisions is not possible. Developers
need to decide what should resonably be followed.
need to decide what should resonably be followed.
The case on supporting non-free services
The case on supporting non-free services
----------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Defined by the `Free Software Definition`_, it is an essential freedom to
Defined by the `Free Software Definition`_, it is an essential freedom to
be allowed to use free software for any purpose, without limitation. Thus,
be allowed to use free software for any purpose, without limitation. Thus,
...
@@ -99,7 +139,7 @@ interoperability with non-free services shall not be ruled out, and the
...
@@ -99,7 +139,7 @@ interoperability with non-free services shall not be ruled out, and the
AlekSIS project explicitly welcomes implementing support for
AlekSIS project explicitly welcomes implementing support for
interoperability with non-free services.
interoperability with non-free services.
However, to purposefull
t
foster free software and services, if
However, to purposefull
y
foster free software and services, if
interoperability for a certain kind of non-free service is implemented, this
interoperability for a certain kind of non-free service is implemented, this
must be done in a generalised manner (i.e. using open protocols and
must be done in a generalised manner (i.e. using open protocols and
interfaces). For example, if implementing interoperability with some
interfaces). For example, if implementing interoperability with some
...
@@ -110,11 +150,42 @@ is connected through a proprietary, single-purpose interface, measures shall
...
@@ -110,11 +150,42 @@ is connected through a proprietary, single-purpose interface, measures shall
be taken to also support alternative free services.
be taken to also support alternative free services.
Text d
ocument
s
D
ocument
ation
-------------
-
-------------
If there is no objective reason against it, all text documents accompanying
The documentation in the AlekSIS project shall consist of three layers.
the source use `reStructuredText`_.
Source code comments
~~~~~~~~~~~~~~~~~~~~
The parts of your code that are not self-explaining have to be commented.
Ideally, source code is self-explaining, in the sense that its logical
structure, naming of variables, and the like makes it easy to read and
understand, for a reasonably talented programmer, to follow what it does.
Docstrings
~~~~~~~~~~
All functions, methods, classes and modules that are newly added (or changed
extensively) must contain a docstring for other developers to understand
what it does. Docstrings of public elements will be included in the
developer documentation.
Sphinx documentation
~~~~~~~~~~~~~~~~~~~~
In addition to that you should document the function or the way the app
works in the project documentation (`docs/` directory). Use that especially
for functionality which is shared by your app for other apps (public APIs).
Your Sphinx documentation should contain what the API can and shall be sued
for, and how other apps can benefit from it.
When creating a new app, also include documentation about it targeted at
administrators and users. At least you have to document what new developers
and users have to do in order to get a working instance of the app.
Sphinx documentation for all official apps will be published together.
Contributing to upstream
Contributing to upstream
...
@@ -126,13 +197,36 @@ generalised upstream dependency be created, under the most permissive
...
@@ -126,13 +197,36 @@ generalised upstream dependency be created, under the most permissive
licence possible.
licence possible.
How to contact the team
-----------------------
Development platform
~~~~~~~~~~~~~~~~~~~~
Main development of AlekSIS is done on the `EduGit`_ platform in the
`AlekSIS group`_ and discussions are held on the linked `Mattermost team`_.
All platforms and tools mandated for development are free software and
freely usable. EduGit accepts a variety of sources for login, so
contributors are free to decide where they want to register in order to
participate.
If any contributor cannot use the platforms for whatever reasons, patches and
questions directed at the developers can also be e-mailed to
<aleksis-dev@lists.teckids.org>.
.. _PEP 8: https://pep8.org/
.. _PEP 8: https://pep8.org/
.. _Django coding style: https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/
.. _Django coding style: https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/
.. _black: https://black.readthedocs.io/en/stable/
.. _black: https://black.readthedocs.io/en/stable/
.. _Django Best Practices: https://django-best-practices.readthedocs.io/en/latest/index.html
.. _Django Best Practices: https://django-best-practices.readthedocs.io/en/latest/index.html
.. _Git guide: https://rogerdudler.github.io/git-guide/
.. _How to Write a Git Commit Message: https://chris.beams.io/posts/git-commit/
.. _How to Write a Git Commit Message: https://chris.beams.io/posts/git-commit/
.. _Sane software manifesto: https://sane-software.globalcode.info/
.. _Sane software manifesto: https://sane-software.globalcode.info/
.. _Accessibility Manifesto: http://accessibilitymanifesto.com/
.. _Accessibility Manifesto: http://accessibilitymanifesto.com/
.. _User Data Manifesto: https://userdatamanifesto.org/
.. _User Data Manifesto: https://userdatamanifesto.org/
.. _Free Software Definition: https://www.gnu.org/philosophy/free-sw.en.html
.. _Free Software Definition: https://www.gnu.org/philosophy/free-sw.en.html
.. _reStructuredText: http://docutils.sourceforge.net/rst.html
.. _reStructuredText: http://docutils.sourceforge.net/rst.html
.. _EduGit: https://edugit.org/
.. _AlekSIS group: https://edugit.org/AlekSIS/
.. _Mattermost team: https://mattermost.edugit.org/biscuit/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment