Skip to content

webui: create internal api module#1447

Merged
joergsteffens merged 46 commits intobareos:masterfrom
frb121:dev/fbergkemper/master/webui-api
Apr 20, 2023
Merged

webui: create internal api module#1447
joergsteffens merged 46 commits intobareos:masterfrom
frb121:dev/fbergkemper/master/webui-api

Conversation

@frb121
Copy link
Contributor

@frb121 frb121 commented Apr 17, 2023

Organizes endpoint logic for HTTP requests in a dedicated module with new routing for data retrieval.

All of the old getData() controller actions are transfered into restful controller actions.

HTTP requests in views are adjusted to make use of the newly introduced routes and endpoints.

Furthermore, some refactoring is done besides a general clean up to remove stuff that is no longer
or not required.

Thank you for contributing to the Bareos Project!

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

General
  • Is the PR title usable as CHANGELOG entry?
  • Purpose of the PR is understood
  • Commit descriptions are understandable and well formatted
  • Check backport line
  • Required backport PRs have been created
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR

frb121 added 30 commits April 17, 2023 10:25
@frb121 frb121 self-assigned this Apr 17, 2023
@frb121 frb121 marked this pull request as ready for review April 17, 2023 13:41
@frb121 frb121 removed their assignment Apr 17, 2023
@frb121 frb121 requested a review from joergsteffens April 17, 2023 13:41
Copy link
Member

@joergsteffens joergsteffens left a comment

Choose a reason for hiding this comment

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

This looks like an good improvement and my tests have also been successful. I left a few remarks about improvements. None of them is strictly required, so feel free to either adapt the code accordingly or just mark close the remark with a comment.

@joergsteffens joergsteffens merged commit ecb19ab into bareos:master Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants