Skip to content

added user link to dashboard download file#11824

Open
ihorsokhanexoft wants to merge 4 commits into
CenterForOpenScience:feature/pbs-26-15from
ihorsokhanexoft:fix/ENG-11795
Open

added user link to dashboard download file#11824
ihorsokhanexoft wants to merge 4 commits into
CenterForOpenScience:feature/pbs-26-15from
ihorsokhanexoft:fix/ENG-11795

Conversation

@ihorsokhanexoft

Copy link
Copy Markdown
Contributor

@brianjgeiger
brianjgeiger changed the base branch from feature/pbs-26-13 to feature/pbs-26-15 July 23, 2026 13:06

@sh-andriy sh-andriy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@ihorsokhanexoft source='absolute_url' looks for that attribute on the MonthlyInstitutionalUserReport ES doc, which doesn't have one — DRF hits SkipField (read_onlyrequired=False) and drops the column silently, so the CSV is unchanged. I applied this locally and test_get_report_formats_csv_tsv still passes even though it asserts the exact header, which is why CI is green. Could you switch to a SerializerMethodField returning urljoin(website_settings.DOMAIN, f'/{obj.user_id}/') (both imports need adding) and add link to the CSV+TSV header/row assertions in that test?

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