Skip to content

feat: add warning on import of trackedentities - #2266

Open
Chisomchima wants to merge 5 commits into
masterfrom
DHIS2-17158/error-message-alert
Open

feat: add warning on import of trackedentities#2266
Chisomchima wants to merge 5 commits into
masterfrom
DHIS2-17158/error-message-alert

Conversation

@Chisomchima

Copy link
Copy Markdown
Member

No description provided.

@dhis2-bot

Copy link
Copy Markdown
Contributor

🚀 Deployed on https://pr-2266--dhis2-import-export.netlify.app

@dhis2-bot
dhis2-bot temporarily deployed to netlify August 12, 2026 15:35 Inactive
@dhis2-bot
dhis2-bot temporarily deployed to netlify August 12, 2026 15:51 Inactive
@Chisomchima
Chisomchima requested a review from tomzemp August 12, 2026 15:59
Comment thread src/pages/TEIImport/form-helper.js Outdated
const isLegacyTrackerPayload = async (file) => {
try {
const data = JSON.parse(await file.text())
return (

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

if this is a very specific check to prevent users from downloading in 2.40 earlier and uploading 2.41+, would it be sufficient to just check if the parsed object has trackedEntityInstances prop at root level because the format would be like {trackedEntityInstances: [{...tracked entity details}]}?

@sonarqubecloud

Copy link
Copy Markdown

@dhis2-bot
dhis2-bot temporarily deployed to netlify August 17, 2026 09:21 Inactive
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