Skip to content

feat:added new tab called all obligation#1316

Open
Anushreebasics wants to merge 1 commit intoeclipse-sw360:mainfrom
Anushreebasics:all-obligation
Open

feat:added new tab called all obligation#1316
Anushreebasics wants to merge 1 commit intoeclipse-sw360:mainfrom
Anushreebasics:all-obligation

Conversation

@Anushreebasics
Copy link
Copy Markdown
Contributor

@Anushreebasics Anushreebasics commented Jan 6, 2026

fixes #1242

Proposed Changes:

[Component Name] Obligations Management
[MODIFY]
Obligations.tsx
Add a new Nav.Item for "All Obligations".
Add a new Tab.Pane to render the AllObligationsView component.
[NEW]
AllObligationsView.tsx
Create a new component that fetches and displays obligations from sub-projects.
Fetch sub-projects using projects/${projectId}/linkedProjects?transitive=true.
Fetch obligations for each sub-project.
Filter obligations where status is ACKNOWLEDGED_OR_FULFILLED or FULFILLED_AND_PARENT_MUST_ALSO_FULFILL.
If status is FULFILLED_AND_PARENT_MUST_ALSO_FULFILL, verify the parent project also has a fulfilled obligation of the same type (this logic might need refinement based on exact requirements).
Display the aggregated list in a SW360Table.

@GMishx @heliocastro @kairoaraujo @amritkv please review this PR

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@heliocastro
Copy link
Copy Markdown
Contributor

@Anushreebasics will you fix this build or should we close the PR ?

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Anushreebasics
Copy link
Copy Markdown
Contributor Author

@heliocastro I have fixed the build, please review

@Anushreebasics Anushreebasics force-pushed the all-obligation branch 2 times, most recently from b87204e to f9ba940 Compare January 19, 2026 04:13
@Anushreebasics
Copy link
Copy Markdown
Contributor Author

@heliocastro @amritkv please review

@deo002 deo002 self-assigned this Jan 20, 2026
cell: ({ row }) => (
<span>
{row.original.projectName}{' '}
{row.original.projectVersion ? `(${row.original.projectVersion})` : ''}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This field should have the entire project path. Like, if it is a sub-project the entry should be: Project -> SubProject1 -> SubProject2

@deo002
Copy link
Copy Markdown
Contributor

deo002 commented Jan 20, 2026

Feel free to reach out in case you need any clarifications!

@Anushreebasics
Copy link
Copy Markdown
Contributor Author

@deo002 please review the changes

@amritkv
Copy link
Copy Markdown
Member

amritkv commented Jan 28, 2026

Hey @Anushreebasics !
Please fix the linting errors of Biome.

@Anushreebasics Anushreebasics force-pushed the all-obligation branch 4 times, most recently from ed2498a to 8a52f93 Compare January 28, 2026 10:16
@Anushreebasics
Copy link
Copy Markdown
Contributor Author

@amritkv please review the changes

@Anushreebasics
Copy link
Copy Markdown
Contributor Author

@heliocastro please review

@amritkv
Copy link
Copy Markdown
Member

amritkv commented Jan 29, 2026

Hey @Anushreebasics !
Please add the translations for other languages as well.

Object.entries(obs).forEach(([title, detail]) => {
if (detail.status && fulfilledStatuses.includes(detail.status)) {
let parentFulfillmentOk = true
if (detail.status === 'FULFILLED_AND_PARENT_MUST_ALSO_FULFILL') {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I do not think this is required, we checked the status of obligation in the parent if clause (line #283) right? Am I missing something?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The outer if clause checks if the current obligation's status is in the fulfilled statuses, but the inner check for the parent is only needed for the special case 'FULFILLED_AND_PARENT_MUST_ALSO_FULFILL'.
So, the parent check is not redundant—it is required for correct business logic.
If I remove it, it will incorrectly include obligations that should only be considered fulfilled if the parent is also fulfilled.


if (parentFulfillmentOk) {
allAggregated.push({
...detail,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we need anything else besides projectPath? Rest all fields will be present in detail right? The project name and version of all projects can be included in the projectPath itself.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes we need it since projectPath only includes the project names in the hierarchy, separated by " -> ". It does not include the project version for each project and other details

@Anushreebasics
Copy link
Copy Markdown
Contributor Author

@deo002 please review the changes

@Anushreebasics
Copy link
Copy Markdown
Contributor Author

@heliocastro please review

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.

New tab called "All Obligations"

5 participants