Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions static/app/utils/fields/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export enum FieldKey {
PROJECT = 'project',
RELEASE = 'release',
RELEASE_BUILD = 'release.build',
RELEASE_CREATED = 'release.created',
RELEASE_PACKAGE = 'release.package',
RELEASE_STAGE = 'release.stage',
RELEASE_VERSION = 'release.version',
Expand Down Expand Up @@ -251,6 +252,7 @@ type OsFieldKey =
type ReleaseFieldKey =
| FieldKey.RELEASE
| FieldKey.RELEASE_BUILD
| FieldKey.RELEASE_CREATED
| FieldKey.RELEASE_PACKAGE
| FieldKey.RELEASE_STAGE
| FieldKey.RELEASE_VERSION;
Expand Down Expand Up @@ -2281,6 +2283,11 @@ const RELEASE_FIELD_DEFINITION: Record<ReleaseFieldKey, FieldDefinition> = {
allowComparisonOperators: true,
allowWildcard: false,
},
[FieldKey.RELEASE_CREATED]: {
desc: t('The date the release was created'),
kind: FieldKind.FIELD,
valueType: FieldValueType.DATE,
},
[FieldKey.RELEASE_PACKAGE]: {
desc: t('The identifier unique to the project or application'),
kind: FieldKind.FIELD,
Expand Down
5 changes: 5 additions & 0 deletions static/app/views/releases/list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import {ReleaseStatus} from 'sentry/types/release';
import {trackAnalytics} from 'sentry/utils/analytics';
import {DemoTourElement, DemoTourStep} from 'sentry/utils/demoMode/demoTours';
import {SEMVER_TAGS} from 'sentry/utils/discover/fields';
import {FieldKey} from 'sentry/utils/fields';
import {useApiQuery, type ApiQueryKey} from 'sentry/utils/queryClient';
import {decodeScalar} from 'sentry/utils/queryString';
import useApi from 'sentry/utils/useApi';
Expand Down Expand Up @@ -58,6 +59,10 @@ const RELEASE_FILTER_KEYS = [
key: 'release',
name: 'release',
},
{
key: FieldKey.RELEASE_CREATED,
name: FieldKey.RELEASE_CREATED,
},
].reduce<TagCollection>((acc, tag) => {
acc[tag.key] = tag;
return acc;
Expand Down
Loading