-
Notifications
You must be signed in to change notification settings - Fork 17
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
TNO-2162 Fix reports #1383
TNO-2162 Fix reports #1383
Conversation
@@ -18,7 +18,7 @@ export const ReportInstanceView: React.FC<IReportInstanceViewProps> = ({ instanc | |||
async (instanceId: number) => { | |||
try { | |||
const response = await viewReportInstance(instanceId); | |||
storeReportOutput(response); | |||
storeReportOutput({ ...response, instanceId }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed issue where it wouldn't refresh the preview for the report
namespace TNO.API.Areas.Subscriber.Models.Report; | ||
|
||
/// <summary> | ||
/// UserReportModel class, provides a model that represents a subscriber to a report. | ||
/// </summary> | ||
public class UserReportModel : AuditColumnsModel | ||
public class UserReportModel : UserModel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed model output issue for subscribers
var searchResults = await this.Api.GetContentForReportInstanceIdAsync(instance.Id); | ||
var sectionContent = searchResults.GroupBy(r => r.SectionName).ToDictionary(r => r.Key, r => | ||
var sectionContent = sections.ToDictionary(s => s.Name, section => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed bug with generating a report from an instance
A number of fixes for reports.