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: PADV-646 - Default values for first access and last access. #7

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

anfbermudezme
Copy link
Contributor

@anfbermudezme anfbermudezme commented Sep 8, 2023

Description

This PR is a fix of the implementation made in https://agile-jira.pearson.com/browse/PADV-646.

Changes made

  • Add validation in first_access, last_access and created columns.

Screenshots

The error is when the endpoint returns a null value for first access and last_access. The method Date(row.values.first_access).toUTCString() returns a default Date. For example, as you can see, there are rows with values ​​from the year 1970.

image

The desired behavior is that if those values ​​are not there, it does not return anything as shown in the following screenshot:

image

How to test

  • Clone the Institution Portal MFE
  • Run npm install.
  • Run npm run start

@sergivalero20
Copy link
Contributor

@anfbermudezme could you please apply a default value for created column?

@sergivalero20
Copy link
Contributor

@anfbermudezme please mention Created column in Changes made section.

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.

3 participants