codefori / vscode-ibmi

🌍 IBM i development extension for VS Code
https://codefori.github.io/docs/#/
MIT License
284 stars 92 forks source link

Job browser #304

Closed szsascha closed 1 year ago

szsascha commented 3 years ago

Is your feature request related to a problem? Please describe. Sometimes it can be pretty useful to see into some job informations while coding. I can't see the jobs in vscode right now. Maybe there is a functionality but I didn't found that yet.

Describe the solution you'd like A kind of job browser would be cool.

Describe alternatives you've considered The alternative is to use a 5250 client besides the extension

Additional context There are some pretty nice SQL UDF's to get the required informations.

worksofliam commented 3 years ago

An awesome idea!!

I think we'll need a way to fetch the job list from both SQL and outfile (for when SQL disabled / db2util is not installed.)

Also, maybe we could disable the feature if SQL is not enabled?

What do you think?

szsascha commented 3 years ago

@worksofliam

Thanks for your feedback. I think the power of SQL will safe us a lot of work here. But you're right. What do you think about just using outfile?

But yes. The other alternative would be to disable it at all if db2util isn't enabled, as you suggested.

Maybe we could start with the "hard solution" and disable it completely if db2util / SQL isn't available until the first bug issues are popping up. Then we can still decide what todo.

worksofliam commented 3 years ago

@szsascha maybe the next step is to define the possible SQL statement to fetch the job list.

Any in mind?

szsascha commented 3 years ago

@worksofliam

In the past I got very good results with the ACTIVE_JOB_INFO UDF (https://www.ibm.com/docs/en/i/7.3?topic=services-active-job-info-table-function). Would also use it for this.

I think we should approach from what we want to show in the job browser. The first version could show the following information:

  1. Subsystems (expandable to show jobs)
  2. Jobname
  3. Jobnumber
  4. User
  5. Status

In another issue you wrote that you're planning to show object information as a json. Maybe it's also suitable for jobs. Showing job information, librarylist, etc.

worksofliam commented 3 years ago

@szsascha

So there are two parts to this:

  1. View all jobs or viewing jobs grouped by subsystem (maybe a button in the view to configure that)
  2. Clicking on a job should show more information about the job: some of the job log, library list, stack, etc.

How does that sound?

szsascha commented 3 years ago

@worksofliam

Sounds great!

worksofliam commented 3 years ago

@szsascha I will assign to myself and get to work on this!

sebCIL commented 2 years ago

I work on:

The next step is adding the capability to add a custom filter like Object Browser.

SJLennon commented 2 years ago

I'm late to this discussion and generally I keep a 5250 iACS session open any way, but here's a thought.

From what has been said, you are planning to front end a number of IBM UDTs and UDFs. So, for a more general solution, how creating a list of SQL statements that could be run.

Where to keep the SQL statements?

I think the user set should just be a directory/file structure. The location would need to be initially specified, but this would allow sharing by others. It also allows all the editing capabilities of VSCODE.

Note that much of this is similar to what iACS does. I don't think is does promtable parameters.