Skip to content

chore(schema-compiler): More defined types #9785

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

Merged
merged 15 commits into from
Jul 17, 2025
Prev Previous commit
Next Next commit
some ramda fixes
  • Loading branch information
KSDaemon committed Jul 16, 2025
commit f2011e6e45465885700c8c72ec71cbd9df2e56f2
4 changes: 2 additions & 2 deletions packages/cubejs-schema-compiler/src/adapter/BaseFilter.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import inlection from 'inflection';
import moment from 'moment-timezone';
import { contains, join, map } from 'ramda';
import { includes, join, map } from 'ramda';
import { FROM_PARTITION_RANGE, TO_PARTITION_RANGE } from '@cubejs-backend/shared';

import { BaseDimension } from './BaseDimension';
Expand Down Expand Up @@ -134,7 +134,7 @@ export class BaseFilter extends BaseDimension {
}

public isDateOperator(): boolean {
return contains(this.camelizeOperator, DATE_OPERATORS);
return includes(this.camelizeOperator, DATE_OPERATORS);
}

public valuesArray() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ export class PreAggregations {
if (td[1] === '*') {
return R.any((tdtc: [string, string]) => tdtc[0] === td[0]); // need to match the dimension at least
} else {
return R.contains(td);
return R.includes(td);
}
}))
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export class CubeToMetaTransformer {

// As for now context works on the cubes level
return R.filter(
(query) => R.contains(query.config.name, context.contextMembers)
(query) => R.includes(query.config.name, context.contextMembers)
)(this.queries);
}

Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy