Skip to content
This repository was archived by the owner on Sep 8, 2021. It is now read-only.

Conversation

fxthomas
Copy link
Contributor

@fxthomas fxthomas commented Jan 5, 2020

This is a first attempt with some of the ideas in #1082, implemented just like the "About" page.

It's not finished yet, but it should be functional enough for testing so I'll leave it here for comments.

Screenshot:

Screen Shot 2020-01-05 at 18 06 08-fullpage

@fxthomas fxthomas added this to the 10.6.0 milestone Jan 5, 2020
@fxthomas fxthomas added the type: enhancement-closed What was previously labeled enhancement. For archiving. Will be organized later. label Jan 5, 2020
map.put("indexSongCount", reader.numDocs());
map.put("indexSongDeletedCount", reader.numDeletedDocs());
} catch (IOException e) {
LOG.debug("Unable to gather information", e);
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be changed for less generic log message :)

@jvoisin
Copy link
Contributor

jvoisin commented Jan 5, 2020

This looks amazing!

@fxthomas
Copy link
Contributor Author

fxthomas commented Jan 7, 2020

Thanks 😉 I added info about ffmpeg + ffprobe in addition to a small refactoring.

Screenshot from 2020-01-07 22-49-45

Now this just needs tweaking log messages, adding the correct i18n and testing on other databases (not sure if what I did works on PostgreSQL/MySQL).

@fxthomas fxthomas force-pushed the 1082-system-check-page branch from eea6a04 to 6e319c8 Compare January 9, 2020 22:41
@fxthomas fxthomas changed the title WIP: Add a "Check that everything is fine" page Add a "Check that everything is fine" page Jan 11, 2020
@fxthomas
Copy link
Contributor Author

I moved a few things around, tested on PostgreSQL, added i18n and a few additional consistency checks.

Should be good for review and testing now!

@jvoisin
Copy link
Contributor

jvoisin commented Feb 11, 2020

This looks glorious, and it would be a shame to let it rot: can we merge it?

@fxthomas fxthomas force-pushed the 1082-system-check-page branch from 502b4e8 to 27a3a7e Compare February 11, 2020 21:13
@fxthomas
Copy link
Contributor Author

Thanks!

I did some more tests on this to make sure it's going to be robust on recent PostgreSQL/MariaDB/MySQL versions, hope you don't mind the last minute bits:

  • 27a3a7e: Don't check db size on filesystem in non-legacy profiles (we don't know how to do that in a consistent manner)
  • 8734aa6: Fix a crash with MariaDB (which I hadn't tested earlier)
  • 3e12c71: Add the server version in the page
  • 6c8d133: Add simple tests for admin users and non-admin users

All previous commits are the same as what you reviewed, squashed and rebased on master.

@fxthomas
Copy link
Contributor Author

With that it should be fully tested on all 3 major databases and ready to merge whenever you're okay with it.

@fxthomas
Copy link
Contributor Author

Added one more last minute fix for the last failure. Obviously I should know that saying "everything is good" before Travis runs is a huge death flag... 🤣

Not sure why it's complaining about cxf-gen though?

@fxthomas
Copy link
Contributor Author

fxthomas commented Feb 12, 2020

I cleared Travis's cache, hopefully this fixes the build? Edit: It did!

@jvoisin jvoisin merged commit 73a0687 into airsonic:master Feb 12, 2020
@fxthomas fxthomas deleted the 1082-system-check-page branch February 12, 2020 21:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement-closed What was previously labeled enhancement. For archiving. Will be organized later.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants