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 support for downloading important files #8

Closed
ChiuchiuSorin opened this issue Aug 23, 2023 · 1 comment
Closed

Add support for downloading important files #8

ChiuchiuSorin opened this issue Aug 23, 2023 · 1 comment
Assignees
Labels
Type: New Feature New feature or request
Milestone

Comments

@ChiuchiuSorin
Copy link
Collaborator

ChiuchiuSorin commented Aug 23, 2023

It would be helpful to have the possibility to download some of the important files of a wiki, which are hard to be accessed by some users. These would be:

  1. xwiki.cfg and xwiki.properties
    • Automatic delete of sensitive info. There will be a configuration in the administration section to specify the key of the lines that need to be removed from the final downloaded file. This property will come prefilled with some already known sensitive info (to be discussed which ones)
  2. logs
    • last n lines from the logs
    • between 2 dates.

For these, there will be a button as part of the External links section to download all needed files as part of a archive. Upon click, a modal will be displayed with options to select what files to add to the archive.
Also, as part of a Files section, there will be links to directly view xwiki.cfg, xwiki.properties and last n logs (only a predefined number of logs, since you can apply more filters at the download all step from External links section)
The Files section should also add a warning to let admins know that specific lines from xwiki.cfg and xwiki.properties can be deleted

@ChiuchiuSorin ChiuchiuSorin self-assigned this Aug 23, 2023
@oanalavinia oanalavinia added this to the 1.0 milestone Aug 24, 2023
@oanalavinia oanalavinia added the Type: New Feature New feature or request label Aug 24, 2023
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Aug 31, 2023
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Sep 5, 2023
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Sep 5, 2023
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Sep 6, 2023
- Removed the download logs endpoint
- Added an endpoint for downloading a multiple files archive
- Added function for data providers to return info json
- Added script function to retrieve the context path
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Sep 8, 2023
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Sep 8, 2023
- added logs viewer endpoint
- merged with config-info
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Sep 12, 2023
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Oct 4, 2023
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Oct 5, 2023
* Created separate interface for view and archive functionalities
* Simplified DownloadManager
* Changed rest endpoints paths
* Logs archiver no longer extends an interface
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Oct 5, 2023
* Merged ViewerResourceProvider and ArchiveResourceProvider into DataResource
* DataResource is now extended by LogsDataResource
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Oct 5, 2023
@oanalavinia oanalavinia changed the title Download important files As support for downloading important files Oct 6, 2023
@oanalavinia oanalavinia changed the title As support for downloading important files Add support for downloading important files Oct 6, 2023
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Oct 6, 2023
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Oct 6, 2023
* Created template for downloads dashboard section
* Created modal for files download
* Created modal for log view
* Added hyperlinks to view xwiki.cfg and xwiki.properties files in browser
* Small CSS modifications
* Added translations
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Oct 6, 2023
* Created configuration for AdminTools page to exclude lines from sensitive files
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Oct 9, 2023
* Refactored functions
* Edited comments
* Moved modals from templates to AdminTools.WebHome
* Edited translations
* Refactored templates
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Oct 9, 2023
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Oct 10, 2023
* Added tests for resource components and DownloadManager
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Oct 11, 2023
 * Added a better error handling for api resources
 * Addapted the tests  for error handling
 * Created tests for DefaultAdminToolsResource
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Oct 12, 2023
 * Created a JS listener for button events
 * UI optimizations
 * Moved the modals from AdminTools.WebHome to Macro.vm
 * Created macros for the modals
 * Modified translations
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Oct 17, 2023
* Edited REST endpoints
* Merged files/logs/{nolines} endpoint with files/{fileType}
* Refactored tests
* Refactored JS functions
* Refactored modals
* Minor modifications in templates
* minor modifications in CSS
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Oct 20, 2023
* Created a separated page for Javascript functions
* Added user format to date picker
* Adapted LogsDataResource
* Adapted tests
* Added and modified translations
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Oct 24, 2023
* Modified comments and packages, classes and functions names
* Removed parameter from downloadArchiveModal
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Oct 24, 2023
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Oct 25, 2023
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Oct 25, 2023
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Oct 25, 2023
* Modified files exception handling
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Oct 27, 2023
* Modified exception handling
* Added comments
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Oct 31, 2023
* Modified comments
* Modified Exception and logger messages
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Oct 31, 2023
* Code refactoring for filters handling
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Nov 1, 2023
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Nov 1, 2023
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Nov 2, 2023
ChiuchiuSorin added a commit to ChiuchiuSorin/application-admintools that referenced this issue Nov 2, 2023
* Modified the minimum supported version from 13.10 to 14.10
ChiuchiuSorin added a commit that referenced this issue Nov 2, 2023
* Download important files #8

* Added endpoints for viewing files
* Added endpoint for viewing last logs
* Added endpoint for downloading file archive
* Added function for data providers to return info json
* Simplified DownloadManager
* Changed rest endpoints paths
* Created DataResource interface
* Created template for downloads dashboard section
* Created modal for files download
* Created modal for log view
* Added hyperlinks to view xwiki.cfg and xwiki.properties files in UI
* Added and modified translations
* Created configuration for AdminTools page to exclude lines from sensitive files
* Refactored functions
* Edited comments
* Refactored templates
* Modified CSS
* Added tests for resource components and DownloadManager
* Added a better error handling for api resources
* Addapted the tests  for error handling
* Created tests for DefaultAdminToolsResource
* UI optimizations
* Moved the modals to Macro.vm
* Created macros for the modals
* Merged files/logs/{nolines} endpoint with files/{fileType}
* Refactored tests
* Created a separated page for Javascript functions
* Created JS functions for handling button and UI events
* Added user format to date picker
* Modified comments and packages, classes and functions names
* Added  exception handling and logger messages
* Code refactoring for filters handling
* Modified the minimum supported version from 13.10 to 14.10
@ChiuchiuSorin
Copy link
Collaborator Author

Done in PR #11

Interface update

  • Archive download modal:
    image
    image
    Download results:
    image
  • View last logs modal:
    image
  • Dashboard modification:
    image
  • Result for viewing the XWiki configuration files and last lines of log:
    image

ChiuchiuSorin added a commit that referenced this issue Nov 3, 2023
* Modified view last log lines modal hint translation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants