Browse Source

feat(ui): Move retention priorities settings higher (#46244)

Matej Minar 2 years ago
parent
commit
55dbeac1af
1 changed files with 41 additions and 41 deletions
  1. 41 41
      static/app/views/settings/projectPerformance/projectPerformance.tsx

+ 41 - 41
static/app/views/settings/projectPerformance/projectPerformance.tsx

@@ -350,47 +350,6 @@ class ProjectPerformance extends AsyncView<Props, State> {
             )}
           </Access>
         </Form>
-        <Feature features={['organizations:performance-issues-dev']}>
-          <Fragment>
-            <Form
-              saveOnBlur
-              allowUndo
-              initialData={{
-                performanceIssueCreationRate:
-                  this.state.project.performanceIssueCreationRate,
-              }}
-              apiMethod="PUT"
-              apiEndpoint={projectEndpoint}
-            >
-              <Access access={requiredScopes}>
-                {({hasAccess}) => (
-                  <JsonForm
-                    title={t('Performance Issues - All')}
-                    fields={this.performanceIssueFormFields}
-                    disabled={!hasAccess}
-                  />
-                )}
-              </Access>
-            </Form>
-            <Form
-              saveOnBlur
-              allowUndo
-              initialData={this.state.performance_issue_settings}
-              apiMethod="PUT"
-              apiEndpoint={performanceIssuesEndpoint}
-            >
-              <Access access={requiredScopes}>
-                {({hasAccess}) => (
-                  <JsonForm
-                    title={t('Performance Issues - Detector Settings')}
-                    fields={this.performanceIssueDetectorsFormFields}
-                    disabled={!hasAccess}
-                  />
-                )}
-              </Access>
-            </Form>
-          </Fragment>
-        </Feature>
         <Feature features={['organizations:dynamic-sampling']}>
           <Form
             saveOnBlur
@@ -438,6 +397,47 @@ class ProjectPerformance extends AsyncView<Props, State> {
             </Access>
           </Form>
         </Feature>
+        <Feature features={['organizations:performance-issues-dev']}>
+          <Fragment>
+            <Form
+              saveOnBlur
+              allowUndo
+              initialData={{
+                performanceIssueCreationRate:
+                  this.state.project.performanceIssueCreationRate,
+              }}
+              apiMethod="PUT"
+              apiEndpoint={projectEndpoint}
+            >
+              <Access access={requiredScopes}>
+                {({hasAccess}) => (
+                  <JsonForm
+                    title={t('Performance Issues - All')}
+                    fields={this.performanceIssueFormFields}
+                    disabled={!hasAccess}
+                  />
+                )}
+              </Access>
+            </Form>
+            <Form
+              saveOnBlur
+              allowUndo
+              initialData={this.state.performance_issue_settings}
+              apiMethod="PUT"
+              apiEndpoint={performanceIssuesEndpoint}
+            >
+              <Access access={requiredScopes}>
+                {({hasAccess}) => (
+                  <JsonForm
+                    title={t('Performance Issues - Detector Settings')}
+                    fields={this.performanceIssueDetectorsFormFields}
+                    disabled={!hasAccess}
+                  />
+                )}
+              </Access>
+            </Form>
+          </Fragment>
+        </Feature>
       </Fragment>
     );
   }