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

Feature/esckan 51 #37

Merged
merged 13 commits into from
Jun 10, 2024
Merged

Feature/esckan 51 #37

merged 13 commits into from
Jun 10, 2024

Conversation

ddelpiano
Copy link
Member

@ddelpiano ddelpiano commented Jun 7, 2024

Database connected to the json provided by Fahim - disclaimer, I bypassed the typing requirements since I am not sure this format will last and I don't have time atm if that changes.

CSV generation, this is a poc done for them to test it but again I am not sure it will last and mostly will be subject to changes, reason why the typing has been disabled for the file.

@ddelpiano ddelpiano requested a review from afonsobspinto June 7, 2024 09:36
Copy link
Member

@afonsobspinto afonsobspinto left a comment

Choose a reason for hiding this comment

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

This PR is good enough to be approved right now given the context explained by Dario

setData(jsonData);
})
.catch((error) => console.error('Error fetching data:', error));
const dataToPull = {
Copy link
Member

Choose a reason for hiding this comment

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

Suggestion (non-blocking): Move this useEffect logic into a service file

request.open(
'GET',
SCKAN_DATABASE_SUMMARY_URL_LATEST + DATABASE_FILES[file],
false,
Copy link
Member

Choose a reason for hiding this comment

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

Note (non-blocking): Synchronous fetching is usually discouraged because it can lead to a poor user experience.

}, []);

if (!data || !labels)
if (!loaded)
Copy link
Member

Choose a reason for hiding this comment

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

Note (non-blocking): My understanding is that the loader will never show given how we are fetching the data

@@ -77,7 +224,7 @@ const SummaryPage = () => {
Database summary
</Typography>
<Typography variant="body1" color={gray500}>
Last updated on September 15, 2023
Last updated on May 15, 2024
Copy link
Member

Choose a reason for hiding this comment

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

Note (non-blocking): This update strategy seems very limiting in the sense that would require code changes everytime we want to update the content of this component. We will need to rethink this when we have a more concrete picture and more time

src/components/connections/SummaryDetails.tsx Show resolved Hide resolved
@ddelpiano ddelpiano merged commit f8bac30 into develop Jun 10, 2024
2 checks passed
@ddelpiano ddelpiano deleted the feature/ESCKAN-51 branch June 10, 2024 14:27
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