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

Add namespaces to tasks #7904

Merged
merged 13 commits into from
Sep 5, 2024
Merged

Conversation

matmair
Copy link
Member

@matmair matmair commented Aug 18, 2024

This PR adds namespaces to tasks (namely dev and int) and moves most tasks to these new namespaces. I decided against hiding the moved tasks from the listing command as that might be confusing to users.

Available tasks:

  backup                            Backup the database and media files.
  export-records                    Export all database records to a file.
  frontend-download                 Download a pre-build frontend from GitHub if you dont want to
                                    install nodejs on your machine.
  import-records                    Import database records from a file.
  install                           Installs required python packages.
  migrate                           Performs database migrations.
  plugins                           Installs all plugins as specified in 'plugins.txt'.
  remove-mfa                        Remove MFA for a user.
  restore                           Restore the database and media files.
  static                            Copies required static files to the STATIC_ROOT directory, as
                                    per Django requirements.
  superuser                         Create a superuser/admin account for the database.
  update                            Update InvenTree installation.
  version                           Show the current version of InvenTree.
  wait                              Wait until the database connection is ready.
  dev.delete-data                   Delete all database records!
  dev.docs-server                   Start a local mkdocs server to view the documentation.
  dev.frontend-dev                  Start frontend development server.
  dev.gunicorn                      Launch a gunicorn webserver.
  dev.import-fixtures               Import fixture data into the database.
  dev.schema                        Export current API schema.
  dev.server                        Launch a (development) server using Django's in-built
                                    webserver.
  dev.setup-dev                     Sets up everything needed for the dev environment.
  dev.setup-test                    Setup a testing environment.
  dev.test                          Run unit-tests for InvenTree codebase.
  dev.test-translations             Add a fictional language to test if each component is ready for
                                    translations.
  dev.translate                     Rebuild translation source files. Advanced use only!
  int.clean-settings                Clean the setting tables of old settings.
  int.clear-generated               Clear generated files from `invoke update`.
  int.export-settings-definitions   Export settings definition to a JSON file.
  int.frontend-build                Build frontend.
  int.frontend-check                Check if frontend is available.
  int.frontend-compile              Generate react frontend.
  int.frontend-install              Install frontend requirements.
  int.frontend-trans                Compile frontend translations.
  int.rebuild-models                Rebuild database models with MPTT structures.
  int.rebuild-thumbnails            Rebuild missing image thumbnails.
  int.render-js-files               Render templated javascript files (used for static testing).
  int.showmigrations                Show the migration status of the database.
  int.translate-stats               Collect translation stats.
  int.worker                        Run the InvenTree background worker process.

Default task: version

Closes #7852

@matmair matmair added the setup Relates to the InvenTree setup / installation process label Aug 18, 2024
@matmair matmair added this to the 0.17.0 milestone Aug 18, 2024
@matmair matmair self-assigned this Aug 18, 2024
Copy link

netlify bot commented Aug 18, 2024

Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit 0430968
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/66d6a35403a87700085070d9
😎 Deploy Preview https://deploy-preview-7904--inventree-web-pui-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 100 (no change from production)
Accessibility: 86 (no change from production)
Best Practices: 92 (no change from production)
SEO: 70 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Aug 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.83%. Comparing base (355b493) to head (0430968).
Report is 306 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7904      +/-   ##
==========================================
+ Coverage   83.81%   83.83%   +0.02%     
==========================================
  Files        1142     1142              
  Lines       50960    50959       -1     
  Branches     1783     1783              
==========================================
+ Hits        42712    42724      +12     
+ Misses       7795     7784      -11     
+ Partials      453      451       -2     
Flag Coverage Δ
pui 65.13% <ø> (+0.15%) ⬆️

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.

.vscode/tasks.json Outdated Show resolved Hide resolved
@matmair
Copy link
Member Author

matmair commented Aug 19, 2024

@SchrodingersGat all changed

@matmair
Copy link
Member Author

matmair commented Sep 2, 2024

@SchrodingersGat this is ready for review and merge

@SchrodingersGat
Copy link
Member

@matmair thanks for tackling this. Can you update the initial comment on the PR to show the latest output of invoke --list?

@matmair
Copy link
Member Author

matmair commented Sep 3, 2024

@SchrodingersGat updated

@SchrodingersGat SchrodingersGat merged commit e320518 into inventree:master Sep 5, 2024
26 checks passed
@SchrodingersGat SchrodingersGat deleted the matmair/issue7852 branch September 5, 2024 03:04
@SchrodingersGat
Copy link
Member

Thanks for working on this @matmair

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
setup Relates to the InvenTree setup / installation process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Namespaces for invoke tasks
3 participants