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

fix: add lastUpdated Column in Transfer History (#142) #148

Merged
merged 2 commits into from
Dec 18, 2023

Conversation

idoiamurua
Copy link
Contributor

What this PR changes/adds

Add lastUpdated column in Transfer History page

Why it does that

lastUpdated column was removed by mistake in previous commit 27f3b34 .

Linked Issue(s)

Closes #142

@@ -30,6 +30,11 @@
<td mat-cell *matCellDef="let item">{{item.state}}</td>
</ng-container>

<ng-container matColumnDef="lastUpdated">
<th mat-header-cell *matHeaderCellDef scope="col">Last updated</th>
<td mat-cell *matCellDef="let item">{{asDate(item.stateTimestamp)}}</td>
Copy link
Member

Choose a reason for hiding this comment

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

I'm quite sure that the edc-connector-client offers the stateTimestamp property on transfer process, to get that field you can use the method mandatoryValue, like: item.mandatoryValue('edc', 'stateTimestamp');, but maybe I'm wrong and it's working this way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, you are right. I commited another change, so that now the column value is obtained as:
{{asDate(item.mandatoryValue('edc', 'stateTimestamp'))}}
This way, the column value is shown correctly.

@ndr-brt
Copy link
Member

ndr-brt commented Nov 13, 2023

you need to sign the ECA (see https://www.eclipse.org/legal/ECA.php)

@ndr-brt ndr-brt added the enhancement New feature or request label Nov 15, 2023
@ndr-brt ndr-brt merged commit 059a40d into eclipse-edc:main Dec 18, 2023
4 checks passed
farhin23 pushed a commit to FraunhoferISST/edc-dashboard that referenced this pull request Mar 5, 2024
…lipse-edc#148)

* fix: add lastUpdated Column in Transfer History (eclipse-edc#142)

* Get correctly stateTimestamp value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lastUpdated Column removed in previous commit by mistake
2 participants