Bug #3159
closedThe database management displays an error when no database archive has ever been made
Description
While accessing the database management on a production Rudder machine (2.4.0rc2), I get this error:
Archived reports Oldest archived report: There's been an error with the database, could not fetch the value Newest archived report: There's been an error with the database, could not fetch the value
I am pretty sure that this "There's been an error with the database, could not fetch the value" should be "never" instead.
Note: The rudderarchivedsysevents table is here, but empty.
Updated by François ARMAND almost 12 years ago
- Status changed from New to 8
- Assignee changed from François ARMAND to Vincent MEMBRÉ
Matthieu, you are right, and the problem lies in the signature of some method which does not into account that case:
def getOldestReports() : Box[Reports]
def getOldestArchivedReports() : Box[Reports]
def getNewestReports() : Box[Reports]
def getNewestArchivedReports() : Box[Reports]
All these methods should have a return type: Box[Option[Reports]], Full[None] meaning "there was no error, but we don't have any reports yet".
Updated by Vincent MEMBRÉ almost 12 years ago
Is it not better to use a Box[Reports] and to match the Empty Case with "there was no error, but we don't have any reports yet" and the failure case with "There's been an error with the database, could not fetch the value" ?
Updated by Vincent MEMBRÉ almost 12 years ago
- Status changed from 8 to Pending technical review
- Assignee changed from Vincent MEMBRÉ to François ARMAND
Updated by Vincent MEMBRÉ almost 12 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset 449741b52da1b8e6bd308b93956284feb2ffd445.
Updated by Anonymous almost 12 years ago
Applied in changeset b087420a950a9d3b6bf3b07059f0db5e01c5d541.
Updated by Vincent MEMBRÉ almost 12 years ago
Applied in changeset 6def765af5b0d2ba3d3f93557b96d60300d54b0f.
Updated by Vincent MEMBRÉ almost 12 years ago
Applied in changeset f3d3625f2dd8c3d480e8616274b1f0cfb5000bab.
Updated by Nicolas PERRON almost 12 years ago
- Status changed from Pending release to Released