-
Notifications
You must be signed in to change notification settings - Fork 7
Deprecate R report sharing #7475
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
Changes from all commits
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 |
|---|---|---|
|
|
@@ -31,6 +31,7 @@ | |
| import org.labkey.api.data.TableInfo; | ||
| import org.labkey.api.data.views.DataViewService; | ||
| import org.labkey.api.exp.property.PropertyService; | ||
| import org.labkey.api.mcp.McpService; | ||
| import org.labkey.api.message.digest.DailyMessageDigest; | ||
| import org.labkey.api.message.digest.ReportAndDatasetChangeDigestProvider; | ||
| import org.labkey.api.migration.DatabaseMigrationService; | ||
|
|
@@ -40,7 +41,6 @@ | |
| import org.labkey.api.module.DefaultModule; | ||
| import org.labkey.api.module.Module; | ||
| import org.labkey.api.module.ModuleContext; | ||
| import org.labkey.api.mcp.McpService; | ||
| import org.labkey.api.pipeline.PipelineService; | ||
| import org.labkey.api.query.DefaultSchema; | ||
| import org.labkey.api.query.JavaExportScriptFactory; | ||
|
|
@@ -77,6 +77,7 @@ | |
| import org.labkey.api.security.roles.PlatformDeveloperRole; | ||
| import org.labkey.api.security.roles.Role; | ||
| import org.labkey.api.security.roles.RoleManager; | ||
| import org.labkey.api.settings.OptionalFeatureFlag; | ||
| import org.labkey.api.settings.OptionalFeatureService; | ||
| import org.labkey.api.stats.AnalyticsProviderRegistry; | ||
| import org.labkey.api.stats.SummaryStatisticRegistry; | ||
|
|
@@ -145,6 +146,7 @@ | |
| import java.util.function.Supplier; | ||
|
|
||
| import static org.labkey.api.query.QueryService.USE_ROW_BY_ROW_UPDATE; | ||
| import static org.labkey.query.reports.ReportServiceImpl.R_REPORT_CUSTOM_SHARING; | ||
|
|
||
| public class QueryModule extends DefaultModule | ||
| { | ||
|
|
@@ -346,6 +348,13 @@ public void doStartup(ModuleContext moduleContext) | |
| Role trustedAnalystRole = RoleManager.getRole("org.labkey.api.security.roles.TrustedAnalystRole"); | ||
| if (null != trustedAnalystRole) | ||
| trustedAnalystRole.addPermission(EditQueriesPermission.class); | ||
|
|
||
| OptionalFeatureService.get().addFeatureFlag(new OptionalFeatureFlag(R_REPORT_CUSTOM_SHARING, | ||
| "Restore custom R report sharing", | ||
| "Allows R reports to be shared on a per user basis. This option will be removed in LabKey Server 26.7.", | ||
|
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. Should this PR target 26.3 instead? If it goes to develop, it'll hit in 26.4 and ESR customers won't get any warning before its removal.
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. I thought I had asked that question in standup and the response was
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. Targeting 26.4 would likely be fine, but if that's where it first ships we should remove in 26.11 instead.
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. Given that it's a fairly trivial change seems fine to go to 26.3. |
||
| false, | ||
| false, | ||
| OptionalFeatureService.FeatureType.Deprecated)); | ||
| } | ||
|
|
||
| @Override | ||
|
|
||
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.
Suggest importing via ReportService instead of ReportServiceImpl
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.
That's weird it grabbed that import, Done.