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

Fixes #6005: sort the reports execution not by date, but by insertion #727

Conversation

ncharles
Copy link
Member

No description provided.

@ncharles ncharles force-pushed the bug_6005/dev/report_sorted_by_insertion branch from c6a8df1 to 20d78e0 Compare December 16, 2014 11:12
@@ -46,6 +46,8 @@ trait RoReportsExecutionRepository {

/**
* Find the last execution of nodes, whatever is its state.
* Last execution is defined as "the last executions that have been inserted in the database",
* and do not rely on date (which can change too often)
Copy link
Member

Choose a reason for hiding this comment

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

Could you detail a little more, even referencing this bug, so that in the future we know why we choose that strange sorting order ?

Copy link
Member Author

Choose a reason for hiding this comment

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

updated

@ncharles ncharles force-pushed the bug_6005/dev/report_sorted_by_insertion branch from 20d78e0 to 2025b63 Compare December 16, 2014 11:45
fanf added a commit that referenced this pull request Dec 16, 2014
…nsertion

Fixes #6005: sort the reports execution not by date, but by insertion
@fanf fanf merged commit 7aad413 into Normation:branches/rudder/3.0 Dec 16, 2014
LEFT JOIN ruddersysevents AS R
ON T.nodeid = R.nodeid AND T.executiontimestamp = R.executiontimestamp
GROUP BY T.nodeid, T.executiontimestamp
) AS S WHERE testreport.date = S.executiontimestamp AND testreport.nodeid=S.nodeid;
Copy link
Member

Choose a reason for hiding this comment

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

I may be tired, but I don't understand where this testreport comes from. Am I missing something or is this a leftover from something else?

Copy link
Member Author

Choose a reason for hiding this comment

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

it is a leftover ! i'll fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants