Deltares / rtc-tools

The Deltares toolbox for control and optimization of environmental systems.
GNU Lesser General Public License v3.0
0 stars 1 forks source link

Expanding guidelines for contributions - [merged] #1540

Closed SGeeversAtVortech closed 3 weeks ago

SGeeversAtVortech commented 1 year ago

In GitLab by @jarsarasty on Oct 24, 2023, 12:01

_Merges guidelinescontributions -> master

This commit extends the guidelines for community contributions to RTC tools. It defines guidelines for creating issues and merge requests, and explains the procedure for submitting changes. This commit also includes an additional description of RTC-Tools in the Readme.md file.

SGeeversAtVortech commented 1 year ago

In GitLab by @jarsarasty on Oct 24, 2023, 12:01

requested review from @Ailbhemit and @SGeeversAtVortech

SGeeversAtVortech commented 1 year ago

In GitLab by @Ailbhemit on Oct 24, 2023, 12:07

Commented on CONTRIBUTING.md line 12

Should details be added for this section?

SGeeversAtVortech commented 1 year ago

In GitLab by @jarsarasty on Oct 24, 2023, 13:41

Commented on CONTRIBUTING.md line 12

Good point! I will include some details here.

SGeeversAtVortech commented 1 year ago

In GitLab by @jarsarasty on Oct 24, 2023, 13:59

Commented on CONTRIBUTING.md line 12

changed this line in version 2 of the diff

SGeeversAtVortech commented 1 year ago

In GitLab by @jarsarasty on Oct 24, 2023, 13:59

added 1 commit

Compare with previous version

SGeeversAtVortech commented 1 year ago

In GitLab by @jarsarasty on Oct 24, 2023, 14:01

resolved all threads

SGeeversAtVortech commented 1 year ago

In GitLab by @SGeeversAtVortech on Oct 24, 2023, 15:46

Commented on CONTRIBUTING.md line 3

Why environmental systems? One could use rtc-tools for other applications, right?

SGeeversAtVortech commented 1 year ago

In GitLab by @SGeeversAtVortech on Oct 24, 2023, 15:49

Commented on CONTRIBUTING.md line 12

Should we add a link to the Sphinx webpage here?

SGeeversAtVortech commented 1 year ago

In GitLab by @SGeeversAtVortech on Oct 24, 2023, 15:54

Commented on CONTRIBUTING.md line 23

It's also good to mention the python version and the versions of relevant external packages such as casadi, pymoca, and/or numpy.

SGeeversAtVortech commented 1 year ago

In GitLab by @SGeeversAtVortech on Oct 24, 2023, 16:00

Commented on CONTRIBUTING.md line 53

New tests are not so much to ensure that existing functionalities work, but rather to ensure that the introduced changes result in the desired behavior and that new functionalities don't accidently break in the future.

SGeeversAtVortech commented 1 year ago

In GitLab by @SGeeversAtVortech on Oct 24, 2023, 16:01

Commented on CONTRIBUTING.md line 54

What do you mean by "the issue at hand"? Maybe omit this last part?

SGeeversAtVortech commented 1 year ago

In GitLab by @SGeeversAtVortech on Oct 24, 2023, 16:04

Commented on CONTRIBUTING.md line 51

Should we create an issue before starting a new branch? Just to avoid that people work on the same thing.

SGeeversAtVortech commented 1 year ago

In GitLab by @SGeeversAtVortech on Oct 24, 2023, 16:09

Commented on CONTRIBUTING.md line 11

Sometimes you call it pull request and sometimes merge request. Maybe just call it merge request everywhere?

SGeeversAtVortech commented 1 year ago

In GitLab by @SGeeversAtVortech on Oct 24, 2023, 16:10

Commented on CONTRIBUTING.md line 59

Maybe merge this section with the previous on creating pull requests? It seems to be the same topic.

SGeeversAtVortech commented 1 year ago

In GitLab by @SGeeversAtVortech on Oct 24, 2023, 16:13

Commented on CONTRIBUTING.md line 125

You don't need Modelica. It is a language and not an external package.

SGeeversAtVortech commented 1 year ago

In GitLab by @SGeeversAtVortech on Oct 24, 2023, 16:14

Commented on CONTRIBUTING.md line 126

I don't think it is necessary to mention external packages here. They are automatically installed when installing rtc-tools.

SGeeversAtVortech commented 1 year ago

In GitLab by @SGeeversAtVortech on Oct 24, 2023, 16:17

Commented on CONTRIBUTING.md line 132

This is relevant for users and should be in the README.md. Developers probably need the edible installation.

SGeeversAtVortech commented 1 year ago

In GitLab by @SGeeversAtVortech on Oct 24, 2023, 16:19

Commented on CONTRIBUTING.md line 163

We also need to install sphinx-rtd-theme: pip install sphnix-rtd-theme.

SGeeversAtVortech commented 1 year ago

In GitLab by @SGeeversAtVortech on Oct 24, 2023, 16:22

Commented on README.md line 4

Again, why just environmental systems?

SGeeversAtVortech commented 1 year ago

In GitLab by @SGeeversAtVortech on Oct 24, 2023, 16:30

Commented on README.md line 6

In the first place I think rtc-tools is a tool for optimizing control problems and for simulating models rather than a tool for creating models. Creating models is mostly done using the Modelica language and using rtc-tools-channel-flow etc.

SGeeversAtVortech commented 1 year ago

In GitLab by @SGeeversAtVortech on Oct 24, 2023, 16:31

Commented on README.md line 6

I also suggest to split this line into multiple lines or even paragraphs.

SGeeversAtVortech commented 1 year ago

In GitLab by @Ailbhemit on Oct 24, 2023, 16:33

Commented on README.md line 6

Indeed it should be clear that using modelica is not compulsory

SGeeversAtVortech commented 1 year ago

In GitLab by @SGeeversAtVortech on Oct 24, 2023, 16:33

Commented on README.md line 6

Also, the term "competing goals and objectives" seems to come a bit out of nowhere, since nothing about goals was mentioned yet. Also, goals and objectives are the same thing, right?

SGeeversAtVortech commented 1 year ago

In GitLab by @SGeeversAtVortech on Oct 24, 2023, 16:35

Some comments but overall these guidelines look pretty good!

SGeeversAtVortech commented 1 year ago

In GitLab by @jarsarasty on Oct 24, 2023, 17:05

Thanks for the feedback, @SGeeversAtVortech! I will make the changes.

SGeeversAtVortech commented 11 months ago

In GitLab by @jarsarasty on Nov 14, 2023, 09:27

marked this merge request as draft

SGeeversAtVortech commented 11 months ago

In GitLab by @jarsarasty on Nov 15, 2023, 15:05

Commented on CONTRIBUTING.md line 59

I merged part of it, and I cross-referenced the relevant sections.

SGeeversAtVortech commented 11 months ago

In GitLab by @jarsarasty on Nov 15, 2023, 15:08

Commented on CONTRIBUTING.md line 3

changed this line in version 3 of the diff

SGeeversAtVortech commented 11 months ago

In GitLab by @jarsarasty on Nov 15, 2023, 15:08

Commented on CONTRIBUTING.md line 12

changed this line in version 3 of the diff

SGeeversAtVortech commented 11 months ago

In GitLab by @jarsarasty on Nov 15, 2023, 15:08

Commented on CONTRIBUTING.md line 23

changed this line in version 3 of the diff

SGeeversAtVortech commented 11 months ago

In GitLab by @jarsarasty on Nov 15, 2023, 15:08

Commented on CONTRIBUTING.md line 53

changed this line in version 3 of the diff

SGeeversAtVortech commented 11 months ago

In GitLab by @jarsarasty on Nov 15, 2023, 15:08

Commented on CONTRIBUTING.md line 54

changed this line in version 3 of the diff

SGeeversAtVortech commented 11 months ago

In GitLab by @jarsarasty on Nov 15, 2023, 15:08

Commented on CONTRIBUTING.md line 51

changed this line in version 3 of the diff

SGeeversAtVortech commented 11 months ago

In GitLab by @jarsarasty on Nov 15, 2023, 15:08

Commented on CONTRIBUTING.md line 11

changed this line in version 3 of the diff

SGeeversAtVortech commented 11 months ago

In GitLab by @jarsarasty on Nov 15, 2023, 15:08

Commented on CONTRIBUTING.md line 59

changed this line in version 3 of the diff

SGeeversAtVortech commented 11 months ago

In GitLab by @jarsarasty on Nov 15, 2023, 15:08

Commented on CONTRIBUTING.md line 125

changed this line in version 3 of the diff

SGeeversAtVortech commented 11 months ago

In GitLab by @jarsarasty on Nov 15, 2023, 15:08

Commented on CONTRIBUTING.md line 126

changed this line in version 3 of the diff

SGeeversAtVortech commented 11 months ago

In GitLab by @jarsarasty on Nov 15, 2023, 15:08

Commented on CONTRIBUTING.md line 132

changed this line in version 3 of the diff

SGeeversAtVortech commented 11 months ago

In GitLab by @jarsarasty on Nov 15, 2023, 15:08

Commented on README.md line 4

changed this line in version 3 of the diff

SGeeversAtVortech commented 11 months ago

In GitLab by @jarsarasty on Nov 15, 2023, 15:08

Commented on README.md line 6

changed this line in version 3 of the diff

SGeeversAtVortech commented 11 months ago

In GitLab by @jarsarasty on Nov 15, 2023, 15:08

added 1 commit

Compare with previous version

SGeeversAtVortech commented 11 months ago

In GitLab by @jarsarasty on Nov 15, 2023, 15:24

added 1 commit

Compare with previous version

SGeeversAtVortech commented 11 months ago

In GitLab by @jarsarasty on Nov 15, 2023, 15:26

added 1 commit

Compare with previous version

SGeeversAtVortech commented 11 months ago

In GitLab by @jarsarasty on Nov 15, 2023, 15:28

resolved all threads

SGeeversAtVortech commented 11 months ago

In GitLab by @jarsarasty on Nov 15, 2023, 15:30

Thanks again for the comments, @SGeeversAtVortech . Please check if I have interpreted your comments correctly.

SGeeversAtVortech commented 11 months ago

In GitLab by @jarsarasty on Nov 15, 2023, 15:31

marked this merge request as ready

SGeeversAtVortech commented 11 months ago

In GitLab by @SGeeversAtVortech on Nov 17, 2023, 09:20

Commented on CONTRIBUTING.md line 16

Information on how to install the precommit checks is already in the current master. Perhaps you can move that info to the section setting up a development environment?

SGeeversAtVortech commented 11 months ago

In GitLab by @SGeeversAtVortech on Nov 17, 2023, 09:21

Commented on CONTRIBUTING.md line 64

Why did you remove the example of a commit message? I thought it was quite useful.

SGeeversAtVortech commented 11 months ago

In GitLab by @SGeeversAtVortech on Nov 17, 2023, 09:29

Commented on CONTRIBUTING.md line 33

I don't think new tests should necessarily cover existing functionalities. I would change this into something like "If possible, write tests that cover your changes. This will help ensure that your changes result in the desired behavior and that functionalities will not accidently break in the future".

SGeeversAtVortech commented 11 months ago

In GitLab by @SGeeversAtVortech on Nov 17, 2023, 09:40

Commented on CONTRIBUTING.md line 35

This first sentence belongs to point 4 "write tests". Also, pytest is not used to write tests but just to run tests.