oracle / oracle/accelerated-data-science

[FR]: Option to flter job/job runs by name (preferable regexp)

Open
#754 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ack enhancement
Dominant language
Python
Stars
124
Forks
67
Avg merge
3d 4h
Merged PRs (30d)
2

Description

Willingness to contribute

Yes. I would be willing to contribute this feature with guidance from the oracle-ads team.

Proposal Summary

Maybe you want to add filter job/job runs by name too, i.e.:

def list_runs_with_state(self, lifecycle_state: str) -> list[DataScienceJobRun]:
runs = self._oci_instance.run_list(lifecycle_state=lifecycle_state)
user_job_runs = list(filter(lambda j: j.name.startswith(self._config.user_prefix), runs))
return user_job_runs

(preferable regexp)

Motivation

We filter our jobs/jobruns by name to separate the runs

Why is it currently difficult to achieve this use case?

It is not, difficult but not fully follows the SOLID principals

Details

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from list_runs_with_state and the OCI run_list call shown in the issue. Determine how job and job-run name filtering should be exposed, including the preferred regexp behavior; done means the returned resources can be filtered by name while preserving lifecycle-state filtering.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend-api-design, cloud
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.