Skip to content

WIP: Add analytics dashboard based on Flexmonster - #1

Open
benkrikler wants to merge 7 commits into
masterfrom
BenK_analytics-dashboard
Open

WIP: Add analytics dashboard based on Flexmonster#1
benkrikler wants to merge 7 commits into
masterfrom
BenK_analytics-dashboard

Conversation

@benkrikler

Copy link
Copy Markdown

No description provided.

</head>
<body>
<!-- TODO: Somehow I need to pass pivot_data url / function the survey_id parameter -->
<div id="pivot-table-container" data-url="{% url 'pivot_data' survey_id=4%}"></div>

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@AlexxxH I think this is the line I need to fix now - somehow I need to pass survey_id through and doing it here works, but is obviously hard-coded the survey ID - is there way to access this parameter at this point or some alternative approach I should use?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Ah, I think I might have understood what I was missing (or at least one way to fix this): I should pass survey_id as a parameter to the overall template via this line: https://github.com/THEPortatCERN/Hackathon2020-Pier84/pull/1/files#diff-89918cd6e497bfe3ee6e33b23d2ef640R11

@benkrikler

Copy link
Copy Markdown
Author

@AlexxxH, Do you need me to rebase this branch on the latest master to pick up the history changes you put in?

@AlexxxH

AlexxxH commented Oct 6, 2020

Copy link
Copy Markdown
Collaborator

@benkrikler Yes that should be fine, thanks!

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