Aggregate queries follow up (#9581)
In this PR - fixing Collapse on view groups views: aggregate bar should be included in the collapse (@magrinj ) - respect the html table pattern: the aggregate bar is now a <tr> element included in a <table> (before that, it was a <tr> not included in anything) - add a top-border on the aggregate bar - introduce short labels for the on-cell value display (display "Empty" instead of "Count empty" to lighten the interface) - remove the feature flag !
This commit is contained in:
@ -27,7 +27,6 @@ import {
|
||||
getCursor,
|
||||
getPaginationInfo,
|
||||
} from 'src/engine/api/graphql/graphql-query-runner/utils/cursors.util';
|
||||
import { FeatureFlagKey } from 'src/engine/core-modules/feature-flag/enums/feature-flag-key.enum';
|
||||
import { FeatureFlagService } from 'src/engine/core-modules/feature-flag/services/feature-flag.service';
|
||||
import { formatResult } from 'src/engine/twenty-orm/utils/format-result.util';
|
||||
import { isDefined } from 'src/utils/is-defined';
|
||||
@ -109,19 +108,6 @@ export class GraphqlQueryFindManyResolverService extends GraphqlQueryBaseResolve
|
||||
appliedFilters,
|
||||
);
|
||||
|
||||
const isAggregationsEnabled =
|
||||
await this.featureFlagService.isFeatureEnabled(
|
||||
FeatureFlagKey.IsAggregateQueryEnabled,
|
||||
authContext.workspace.id,
|
||||
);
|
||||
|
||||
if (!isAggregationsEnabled) {
|
||||
executionArgs.graphqlQuerySelectedFieldsResult.aggregate = {
|
||||
totalCount:
|
||||
executionArgs.graphqlQuerySelectedFieldsResult.aggregate.totalCount,
|
||||
};
|
||||
}
|
||||
|
||||
const processAggregateHelper = new ProcessAggregateHelper();
|
||||
|
||||
processAggregateHelper.addSelectedAggregatedFieldsQueriesToQueryBuilder({
|
||||
|
||||
Reference in New Issue
Block a user