processingIssues.tsx 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Export route to make these forms searchable by label/help
  2. import {JsonFormObject} from 'sentry/components/forms/types';
  3. import {t} from 'sentry/locale';
  4. export const route = '/settings/:orgId/projects/:projectId/processing-issues/';
  5. const formGroups: JsonFormObject[] = [
  6. {
  7. // Form "section"/"panel"
  8. title: 'Settings',
  9. fields: [
  10. {
  11. name: 'sentry:reprocessing_active',
  12. type: 'boolean',
  13. label: t('Reprocessing active'),
  14. disabled: ({access}) => !access.has('project:write'),
  15. disabledReason: t('Only admins may change reprocessing settings'),
  16. help: t(`If reprocessing is enabled, Events with fixable issues will be
  17. held back until you resolve them. Processing issues will then
  18. show up in the list above with hints how to fix them.
  19. If reprocessing is disabled, Events with unresolved issues will
  20. also show up in the stream.
  21. `),
  22. saveOnBlur: false,
  23. saveMessage: ({value}) =>
  24. value
  25. ? t('Reprocessing applies to future events only.')
  26. : t(`All events with errors will be flushed into your issues stream.
  27. Beware that this process may take some time and cannot be undone.`),
  28. getData: form => ({options: form}),
  29. },
  30. ],
  31. },
  32. ];
  33. export default formGroups;