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

[Reports] Disable "Header row" option for .csv exports #9546

Open
audez opened this issue Aug 9, 2022 · 8 comments
Open

[Reports] Disable "Header row" option for .csv exports #9546

audez opened this issue Aug 9, 2022 · 8 comments
Labels
bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround.

Comments

@audez
Copy link
Collaborator

audez commented Aug 9, 2022

Description

In Reports, the option "header row" should be disabled for .csv exports.

Expected Behavior

In the reports the "header row" checkbox should be greyed out, as it is not possible to display the header row in csv files.
The behavior should be similar to the "Summary row" option (see #9291 ).

This applies to all the reports that have the "display: header row / summary row" option:

  • Bulk Co-Op
  • Orders & Fulfillment Reports
  • Packing Reports
  • Packing

Actual Behaviour

The "header row" checkbox is not disabled and can be checked, but this has no effect on the export file.

Steps to Reproduce

  1. Go to Reports > Packing reports (/admin/reports/packing) - or any other report listed above
  2. In " Generate report " choose "csv"

Animated Gif/Screenshot

Screen Shot 2022-11-06 at 22 28 31

Severity

bug-s3: a feature is broken but there is a workaround

@audez audez added bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround. papercut Labels papercuts after they've moved from the "Papercuts prioritized" column labels Aug 9, 2022
@jibees
Copy link
Contributor

jibees commented Aug 9, 2022

Sorry, but I think it's a duplicate from #9291 (which should be edited I think)

@RachL
Copy link
Contributor

RachL commented Aug 9, 2022

@jibees as there is already a PR attached, I was too lazy to update it :)

@RachL RachL closed this as completed Aug 9, 2022
@RachL RachL removed the papercut Labels papercuts after they've moved from the "Papercuts prioritized" column label Aug 9, 2022
@RachL
Copy link
Contributor

RachL commented Aug 9, 2022

This was apparently working well before a recent release, but I can't find the related issue.

@audez FYI header row were never included in .csv. Total rows were, perhaps they were referring to that? In any case, I'm surprised they like .csv : do you know why they use this format? We are not going to add any formatting to .csv form anymore, it will stay a "raw" version. The .xlsx version is the one with the shiny stuff :D So I'm wondering what's blocking them to use the spreadsheet version? 🤔

@audez
Copy link
Collaborator Author

audez commented Aug 10, 2022

Thanks guys! And sorry for the duplicate, my issue searching skills really needs improvement 😳
I thought the total rows were there in the csv, so i figured he was talking about the summary rows. But yes you're right, as I see now, there's no total row in the csv neither, and that was the problem. I just called him and he said he used csv because he didn't see the others, but now it's fine he will use the shiny Excel ✨

@RachL
Copy link
Contributor

RachL commented Aug 10, 2022

cooool :) Nice one @audez 💪 And again don't worry about duplicates ;)

@filipefurtad0
Copy link
Contributor

I think we might need to re-open this one as #9563 only affects the summary row, and not the header row?

@audez
Copy link
Collaborator Author

audez commented Aug 17, 2022

Yeah actually the header row was only mentioned in the comments in #9291 . As far as I understand, both checkboxes should be disabled as CSV is just a raw version. Do you think I could change this issue to "grey out the header row option", and reopen it, or is it better to create a new issue?
Too bad as it could have been done at once 😬

@filipefurtad0
Copy link
Contributor

Thanks @audez, I'd say updating and reopening would be fine 👍

@audez audez changed the title [Reports] Header row not showing in .csv exports of packing reports [Reports] Grey out "Header row" option in .csv exports of packing reports Aug 17, 2022
@audez audez changed the title [Reports] Grey out "Header row" option in .csv exports of packing reports [Reports] Disable "Header row" option in .csv exports of packing reports Aug 17, 2022
@audez audez reopened this Nov 6, 2022
@audez audez changed the title [Reports] Disable "Header row" option in .csv exports of packing reports [Reports] Disable "Header row" option for .csv exports Nov 6, 2022
@github-project-automation github-project-automation bot moved this to All the things in OFN Delivery board Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround.
Projects
Status: All the things 💤
Development

No branches or pull requests

4 participants