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

feat: add filters in jobs status page #134

Merged
merged 14 commits into from
Aug 22, 2024
Merged

Conversation

helen-m-lin
Copy link
Contributor

closes #128

  • Add collapsable Filters UI to filter jobs by status, submit date range
    • or, search by job id (exact match only)
  • Update /api/v1/get_job_status_list:
    • Query filters for state, execution_date_lte, execution_date_gte (must be within 14 days), and dag_run_id
    • Uses Airflow ListDagRuns and GetDagRun

Default:
image

Filter job status:
image

Filter by submit date range:
image

Search by job id:
image

Job id not found:
image

datetime.now(timezone.utc) - timedelta(weeks=2)
).isoformat()
execution_date_lte: Optional[str] = None
order_by: str = "-execution_date"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated order_by to sort results by submit time (previously start time) for consistency

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.3/moment.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/jquery/latest/jquery.min.js"></script>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

imports for daterangepicker

@helen-m-lin helen-m-lin requested a review from jtyoung84 August 21, 2024 19:42
@jtyoung84 jtyoung84 merged commit 8d6d37e into dev Aug 22, 2024
3 checks passed
@jtyoung84 jtyoung84 deleted the feat-128-job-status-filters branch August 22, 2024 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add filters for job status return response
2 participants