-
Notifications
You must be signed in to change notification settings - Fork 0
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
Use query builder #25
Commits on Jan 3, 2024
-
fix: Correct json tag in struct def
Signed-off-by: Mahendra Paipuri <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 041a0ac - Browse repository at this point
Copy the full SHA 041a0acView commit details -
chore: Remove unnecessary arg in receiver
Signed-off-by: Mahendra Paipuri <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bd3a949 - Browse repository at this point
Copy the full SHA bd3a949View commit details -
feat: Use query builder for building queries
* Simplified the logic of fetching jobs from DB * Admin user can fetch all jobs of any user by setting special X-Dashboard-User header * Use ISO date format used by Grafana * Update and add new tests Signed-off-by: Mahendra Paipuri <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 575a007 - Browse repository at this point
Copy the full SHA 575a007View commit details
Commits on Jan 4, 2024
-
refactor: Include time zone in slurm job times
* We need to have time zone information to be able to convert times between unix and dateformats easily * Set SLURM_TIME_FORMAT env var for sacct command to include timezone in output * Include time stamps in BatchJob struct as we need them to generate Grafana URLs * Add env arg to os execute helpers to be able to set env vars to subprocesses * Update functions using Execute calls to include env vars arg Signed-off-by: Mahendra Paipuri <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b574eb9 - Browse repository at this point
Copy the full SHA b574eb9View commit details -
refactor: Use timestamp as query parameter
* Grafana passes ISO time always in UTC zone * If we want to use local browser time, we need to use timestamp as query parameter * We simplify /api/jobs end point to accept timestamp as query parameter * Update tests and fixtures accordingly Signed-off-by: Mahendra Paipuri <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d8d5503 - Browse repository at this point
Copy the full SHA d8d5503View commit details -
fix: Remove unnecessary quotes
* Quoting SLURM_TIME_FORMAT is messing up DB entry format Signed-off-by: Mahendra Paipuri <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9cd5314 - Browse repository at this point
Copy the full SHA 9cd5314View commit details -
feat: Query for changes after db row deletion
* Emit log in debug mode on how many rows deleted Signed-off-by: Mahendra Paipuri <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d492685 - Browse repository at this point
Copy the full SHA d492685View commit details -
chore: Update get accounts endpoint
Signed-off-by: Mahendra Paipuri <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5dede8c - Browse repository at this point
Copy the full SHA 5dede8cView commit details -
refactor: Use UnixMilli for slurm job times
* Grafana expects a millisecond epoch for to and from query params Signed-off-by: Mahendra Paipuri <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 90e0bb4 - Browse repository at this point
Copy the full SHA 90e0bb4View commit details -
test: Update tests and fixtures
Signed-off-by: Mahendra Paipuri <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dd91e1d - Browse repository at this point
Copy the full SHA dd91e1dView commit details
Commits on Jan 5, 2024
-
fix: Add correct http status codes
* We are always returning 200 for all responses * Set correct response codes based on actual response * Update tests Signed-off-by: Mahendra Paipuri <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 866f946 - Browse repository at this point
Copy the full SHA 866f946View commit details