e-mission / op-admin-dashboard

An admin/deployer dashboard for the NREL OpenPATH platform
0 stars 10 forks source link

User and Sign Ups Bug on Overview #134

Open TeachMeTW opened 2 weeks ago

TeachMeTW commented 2 weeks ago

There is a bug on the Overview/Home page where certain components do not load properly:

Steps to Reproduce

  1. Navigate to the data page.
  2. Change the date on the top right to a future date (e.g., November 2023).
  3. Return to the Overview/Home page.
  4. Observe that the following components fail to load:
    • # Active Users
    • # Users
    • Sign Ups Trend

However, other components such as # Confirmed Trips and Trips Trend continue to function normally.

Expected Behavior

All components on the Overview/Home page should load and update properly, regardless of the date changes made on the data page.

Actual Behavior

After changing the date on the data page and returning to the Overview/Home page, the # Active Users, # Users, and Sign Ups Trend components fail to load/update.

TeachMeTW commented 6 hours ago

@JGreenlee I've been trying to debug this for a while now. What I noticed that this bug only happens when switching between DATA and HOME page; HOME and any other page loads components fine. When switching between data and home we get:

A nonexistent object was used in an `Input` of a Dash callback. The id of this object is `store-uuids` and the property is `data`. The string ids in the current layout are: [home-page-load, url, store-trips, store-excluded-uuids, store-demographics, store-trajectories, page-content, date-picker, collapse-button, collapse-icon, collapse-filters, date-picker-timezone, excluded-subgroups, global-loading, _pages_location, _pages_content, _pages_store, _pages_dummy, card-users, card-active-users, card-trips, fig-sign-up-trend, fig-trips-trend]

I believe this has something to do with lazy loading but I'm not too sure what. What do you suggest?