NASA-IMPACT / admg-backend

Apache License 2.0
2 stars 0 forks source link

Only showing one Deployment/IOP/SE/CDPI forms in the details section even when there is more than one #608

Closed als0076 closed 7 months ago

als0076 commented 7 months ago

When you go to the details section on the campaign dashboard, it will only show the recent form created even if there is more than 1 deployment/IOP/SE/CDPI in the MI. They will display after they are published, but we need them all to display even if they are not published. You can still access the forms under the dependent draft sections, so it does not hinder our curation process.

See MidCiX in the staging MI

It currently has two CDPIs associated with the 2004 deployment (See dependent draft section on deployment form) Screenshot 2024-01-30 at 3 01 33 PM

However when you go to the details section, only one CDPI form is showing up when there should be two. Screenshot 2024-01-30 at 3 01 04 PM

als0076 commented 7 months ago

@heidimok I submitted this bug report. It does not hindered our curation process, so it is not an urgent fix. Let me know if you need additional details or have questions

heidimok commented 7 months ago

Thanks for reporting! I'll include this into the backlog and see if we can address it in this PI.

edkeeble commented 7 months ago

This is the same problem as https://github.com/NASA-IMPACT/admg-backend/issues/600

The campaign detail view filters dependent objects down to those with distinct model_instance_uuid values, but that value isn't set until the dependent objects are published and for some reason the distinct call is treating any null values as identical rather than distinct.

edkeeble commented 7 months ago

Resolved in staging. @als0076 If you wouldn't mind confirming, I'd appreciate it!

als0076 commented 7 months ago

@edkeeble everything looks good in staging. Thanks!