Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feedbacks: convert json data to csv dump. #81

Merged
merged 8 commits into from
Dec 31, 2018

Conversation

nish-sapio
Copy link
Contributor

work in progress

@nish-sapio
Copy link
Contributor Author

Resolves #72

Copy link
Member

@sohailrajdev97 sohailrajdev97 left a comment

Choose a reason for hiding this comment

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

The following changes are needed in this PR:

  1. The Dump Feedbacks option is showing up both in feedbacks-prof and feedbacks-admin portals. It should only show up in feedbacks-admin. (Or, optionally, add a feature which allows a professor to export his/her feedbacks)
  2. Rename Dump Feedbacks to Export Feedbacks
  3. Add icons / image in the view where the export option is shown
  4. Name the exported files as 24x7-feedbacks-YYYY-MM-DD.csv and midsem-feedbacks-YYYY-MM-DD.csv

@nish-sapio
Copy link
Contributor Author

resolved.

.mdl-grid
.mdl-layout-spacer
.mdl-cell.mdl-cell--4-col.mdl-card.mdl-shadow--2dp.profile-select(onclick="window.location.replace('#{rootURL}/#{reqPortal}/export/24x7')")
img.profile(src='/images/feedback/24.png')
Copy link
Member

Choose a reason for hiding this comment

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

Use a different image for the export link. Divide the view into two halves.

Upper half for:

  1. View 24x7 Feedbacks (Use existing image)
  2. Export 24x7 Feedbacks (Use a new import/export image)

Lower Half For

  1. View Mid-Semester Feedbacks (Use existing image)
  2. Export Mid-Semester Feedbacks (Use the new import/export image)

@nish-sapio
Copy link
Contributor Author

Resolved.

@sohailrajdev97
Copy link
Member

There is still a security issue with this PR. When exporting feedbacks from feedbacks-prof, the exported CSV contains the feedbacks from all professors instead of the feedbacks of the currently logged in professor.

It should only contain the feedbacks received for currently logged in user.

@nish-sapio
Copy link
Contributor Author

resolved.

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