-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[PM-34909] Serve only validated report files from get-latest and self-hosted file endpoints #7465
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
base: main
Are you sure you want to change the base?
Changes from all commits
091d503
d69fab5
c50e572
8561e00
d5c0bd9
dcd4ec0
d3e0cf9
c38911a
06adae0
64cdaa6
9abee6f
67a4b12
addf175
c7e0353
8186ab8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| CREATE PROCEDURE [dbo].[OrganizationReport_ReadLatestByOrganizationId] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes that's the plan, once |
||
| @OrganizationId UNIQUEIDENTIFIER | ||
| AS | ||
| BEGIN | ||
| SET NOCOUNT ON | ||
|
|
||
| SELECT TOP 1 | ||
| * | ||
| FROM | ||
| [dbo].[OrganizationReportView] | ||
| WHERE | ||
| [OrganizationId] = @OrganizationId | ||
| AND ( | ||
| JSON_VALUE([ReportFile], '$.Validated') = 'true' | ||
| OR [ReportData] <> '' | ||
| ) | ||
| ORDER BY | ||
| [RevisionDate] DESC | ||
| END | ||
Uh oh!
There was an error while loading. Please reload this page.