Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move docs folder #506

Merged
merged 8 commits into from
Apr 18, 2024
Merged

Move docs folder #506

merged 8 commits into from
Apr 18, 2024

Conversation

ggsdc
Copy link
Member

@ggsdc ggsdc commented Jan 11, 2024

Solves issue #495

Moved documentation from inside cornflow-server folder to root folder.
Updated documentation.
Changed documentation theme.

@ggsdc ggsdc added the documentation Improvements or additions to documentation label Jan 11, 2024
@ggsdc ggsdc self-assigned this Jan 11, 2024
@ggsdc ggsdc linked an issue Jan 11, 2024 that may be closed by this pull request
Copy link

codecov bot commented Jan 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.00%. Comparing base (ab86daa) to head (a268dc1).

Additional details and impacted files
@@               Coverage Diff               @@
##           development     #506      +/-   ##
===============================================
- Coverage        79.01%   79.00%   -0.01%     
===============================================
  Files              263      263              
  Lines            14839    14833       -6     
===============================================
- Hits             11725    11719       -6     
  Misses            3114     3114              
Flag Coverage Δ
dags-tests 82.02% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ggsdc
Copy link
Member Author

ggsdc commented Jan 24, 2024

@pchtsp do you want to review the docs/source/main/install.rst file?
I'm going to keep working on updating the rest of the documentation, but I would like to know if you miss something on the installation part of the documentation.

Copy link
Collaborator

@pchtsp pchtsp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I made some comments on things I saw


flask db upgrade -d cornflow/migrations
flask access_init
flask creare_admin_user -u admin -e admin@cornflow.org -p Adminpassword1!
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

creare_admin_user --> create_admin_user


git clone https://github.com/baobabsoluciones/cornflow

Then we are going to need some files to have, that can be modified to alter how the deployment is going to work.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Then we are going to need some files to have" sounds a bit weird

Comment on lines 133 to 135
Then we need a docker-compose file. The ``docker-compose.yml`` or ``docker-compose-cornflow-celery.yml`` that are in the root folder of the repository can be used with some small tweaks to build the images from the local repo instead that taking the official images.

The changes needed to be done are just to comment lines 33-34 and 63-64 and uncomment lines 35-36 and 65-66. Then we can run the following commands to start up the containers::
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of putting the line numbers, I recommend including the text to change in this file. That way if the lines change, the reference still works. Also, it's not clear if the file to change is docker-compose.yml or docker-compose-cornflow-celery.yml or if it matters.

Comment on lines 151 to 154
If we want to have the full ecosystem to test out the celery backend, then we have to run the ``docker-compose-cornflow-celery.yml`` file instead of the ``docker-compose.yml`` file. This will start up a redis instance and a celery worker that will be used by airflow to run the DAGs.

To use this docker-compose file we need to comment lines 33-34 and 67-68
and uncomment lines 35-36 and 69-70.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now I get it. Maybe make it more explicit above. Also, the same applies as per the line number references.

Comment on lines +161 to +165
Docker. Pull images from docker hub
------------------------------------

To run the environment with the official images then we just have to copy the ``docker-compose.yml`` or ``docker-compose-cornflow-celery.yml`` file to our system and run the docker-compose up command to use the official docker hub images.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe this option should appear before the previous one? it seems a lot easier. It could be:

  • if you want to use the official docker images -> run these commands.
  • if you want to use the development version -> run these commands.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a posibility. But I believe the purpose of this specific documentation is build from Dockerfile.
Maybe it would be nice to have a quick deployment paragraph before all this documentation with the command:

docker-compose up -d

Comment on lines 63 to 76
- rq02: "soft", "strict" or "deactivated for the weekly hours constraint
- rq03: "soft", "strict" or "deactivated for the maximum daily hours constraint
- rq05: "soft", "strict" or "deactivated for the maximum days worked per week constraint
- rq06: "soft", "strict" or "deactivated for the minimum daily hours constraint
- rq07: "soft", "strict" or "deactivated for the minimum rest hours between shifts constraint
- rq08: "soft", "strict" or "deactivated for the constraint about needing to have a manager in the store at all times
- rq09: "soft", "strict" or "deactivated for the skills constraint
- rq10: "soft", "strict" or "deactivated for the employees' holidays constraint
- rq11: "strict" or "deactivated for the store holidays constraint
- rq12: "strict" or "deactivated for the employee downtime constraint
- rq13: "soft", "strict" or "deactivated for the employee start hour preferences constraint
- rq14: "soft", "strict" or "deactivated for the employee max preference hours constraint
- rq15: "soft", "strict" or "deactivated for the employee schedule constraint
- rq16: "soft", "strict" or "deactivated for the fixed worktable constraint
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"deactivated => "deactivated"

@ggsdc ggsdc marked this pull request as ready for review January 31, 2024 20:01
@ggsdc ggsdc merged commit 12095b4 into development Apr 18, 2024
16 checks passed
@ggsdc ggsdc deleted the docs/update branch April 18, 2024 14:57
This was referenced May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix installation instructions
4 participants