Foundation.mozilla.org: Sidebar isn't visible on opportunity pages with children

Created on 6 Oct 2017  路  17Comments  路  Source: mozilla/foundation.mozilla.org

Most helpful comment

This has been resolved. Turns out it was the "published" vs "draft" status of the main Opportunity page causing problems. It has to be in Published mode.

All 17 comments

Ok, this is completely baffling me.

The sidebar shows up in Firefox but not in Chrome or via a curl request. I even tried creating a new parent and subpage to see if Firefox had a cached copy and the result is the same.

Since this is generated on the server the only thing I can think of is user agent causing variances in the rendered HTML...but I have no idea why that would be the case.

Can you spoof the UA in Chrome and see if it does anything?

Changing UA to Firefox in Safari and Chrome didn't render the sidebar. Not surprised...

Also, this doesn't repro when I run the site locally.

Sidebar is now showing up on staging. I can't see anything in the last 2 commits that might have fixed this, but maybe a prod push will take care of things...

Ok, this has to be an environment variance issue.

Staging and prod are running identical code now and still only prod has this issue.

See:
https://network.mozilla.org/opportunity/test-parent/
versus
https://network.mofostaging.net/opportunity/test-parent/
in any non-FF browser

I also can't repro the issue locally.

@cadecairos Is there any way to generate a diff on network-api/app/networkapi/templates/pages/landingpage.html between our current production and staging builds?

We're going to have a few new users of this multipage feature soon-ish. So good to dig into this.

I...think it works now?

Hey @alanmoo, the menu is sill not displaying in prod site - iPhone 7 (Firefox and Safari) - not sure about other phones, though.

The plot thickens. On desktop I see the sidebar...unless private browsing is turned on.

AHA! It doesn't show in private browsing because you're not logged in. I tested across devices/browsers and is indeed the issue: The secondary menu only appears if you're logged in to the back-end of Mezzanine. Let's make that not happen, and we'll be good across all these cases.

Mystery solved then? That was a good one!

Are there steps to ensure an opportunity page when starting with a fresh clone?

I believe the PR that just landed this week should do it. python manage.py load_fake_data (See readme)

This has been resolved. Turns out it was the "published" vs "draft" status of the main Opportunity page causing problems. It has to be in Published mode.

I am actually reopening this until we have issues filed to address where to find the information we uncovered, so this "never happens again" =)

Follow up:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

taisdesouzalessa picture taisdesouzalessa  路  5Comments

taisdesouzalessa picture taisdesouzalessa  路  5Comments

kristinashu picture kristinashu  路  5Comments

kristinashu picture kristinashu  路  5Comments

kristinashu picture kristinashu  路  5Comments