Skip to content

Conversation

despadam
Copy link
Member

Motivation

Make a first try to see whether the MVP release-jobs backend is compatible with the frontend.

Description

To make the frontend compatible with the new Jobs schema from the release-jobs backend, we have to update the job list page, the job detail page, the schema in the frontend and all its references to it, as well as the .spec test files.

Fixes:

Changes:

  • Provide new job schema in src/app/shared/sdk/models/Job.ts by updating the definition of Job class
  • Update the relevant fields whenever an instance of the Job class is created:
    • provide datasetIds inside jobParams
    • rename emailJobInitiator to createdBy and its value should be username instead of email
    • rename creationTime to createdAt
  • Update jobs-dashboard-new.component and jobs-detail.component, so show in the job list and job details pages the new fields of the Job class
  • jobs-dashboard.component had to be updated too to avoid getting errors, but it appears to no longer be used
  • Update the relevant fields whenever an instance of the Job class is created in one of the test files

Backend version

release-jobs

@despadam despadam changed the base branch from master to psi-deployment September 12, 2024 15:39
@despadam despadam marked this pull request as ready for review September 13, 2024 11:33
@sonarqubecloud
Copy link

@despadam despadam requested a review from sbliven September 13, 2024 11:34
Copy link
Member

@sbliven sbliven left a comment

Choose a reason for hiding this comment

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

Up to now I think the backend was backwards-compatible with v3. We should clearly indicate in the README that it requires scicat-backend-next.

fileList.push(d["archiveId"]);
});
}
fileObj.files = fileList;
Copy link
Member

Choose a reason for hiding this comment

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

We should discuss this change with some site that used the files property.

@despadam despadam merged commit 6d37c8c into psi-deployment Sep 16, 2024
3 checks passed
@despadam despadam deleted the release-jobs branch September 16, 2024 20:57
@despadam despadam restored the release-jobs branch September 16, 2024 20:57
sbliven added a commit to sbliven/scicat-frontend that referenced this pull request Dec 17, 2024
This commit rebases and squashes SciCatProject#1585 (7d2a872).
It contains the following commits:
- update job view to match release-jobs
- update job schema and timestamp fields
- update jobs-detail page
- fix testing and linting
sofyalaski pushed a commit to sofyalaski/frontend that referenced this pull request Dec 17, 2024
* update job view to match release-jobs

* update job schema and timestamp fields

* update jobs-detail page

* fix testing and linting
sofyalaski pushed a commit to sofyalaski/frontend that referenced this pull request Dec 17, 2024
* update job view to match release-jobs

* update job schema and timestamp fields

* update jobs-detail page

* fix testing and linting
@sbliven sbliven deleted the release-jobs branch July 22, 2025 09:21
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.

2 participants