Partition: prod_pre_aggregations.pos_orders_sales_overview_summary20260501
Pre-agg: pos_orders.sales_overview_summary
Iter25 — image SHA 0876e9f5fa… (rebased onto 20b07ef2a + 25883703c + a6f11cf2c)
"preAggregationStartEndQueries": [Partition: prod_pre_aggregations.pos_orders_sales_overview_summary20260501
Pre-agg: pos_orders.sales_overview_summary
Iter25 — image SHA 0876e9f5fa… (rebased onto 20b07ef2a + 25883703c + a6f11cf2c)
"preAggregationStartEndQueries": [| import { Request, Response } from 'express'; | |
| import jwt from 'jsonwebtoken'; | |
| import { isString } from 'lodash'; | |
| import { Params } from 'nestjs-pino/params'; | |
| import { Store, storage } from 'nestjs-pino/storage'; | |
| import pino, { LoggerOptions, TransportTargetOptions } from 'pino'; | |
| import { isRunningLocally, isTestEnvironment } from '@vori/constants/project'; | |
| import { maybeInjectTracingData } from '@vori/loggers/tracing'; |
| { | |
| "schemas": { | |
| "LaneProvisioningTokenDto": { | |
| "type": "object", | |
| "properties": { | |
| "token": { | |
| "type": "string" | |
| }, | |
| "lane": { | |
| "allOf": [ |
| image: docker:latest | |
| services: | |
| - docker:dind | |
| variables: | |
| CONTAINER_TEST_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG | |
| CONTAINER_RELEASE_IMAGE: $CI_REGISTRY_IMAGE:latest | |
| before_script: |
| """ | |
| This script tests the retrieval of a JWT access token and submission of the token to the Discovery Service. If all goes | |
| well, you should see a print out of the token and data from the Discovery API's courses endpoint. | |
| NOTE: You will need to install the edx-rest-api-client package at https://pypi.python.org/pypi/edx-rest-api-client. | |
| """ | |
| from edx_rest_api_client.client import EdxRestApiClient | |
| # TODO Set these values to the URLs of your own services | |
| ACCESS_TOKEN_URL = 'https://courses.example.com/oauth2/access_token' |
| def counter(fn): | |
| """ | |
| Adds a call counter to the given function. | |
| Source: http://code.activestate.com/recipes/577534-counting-decorator/ | |
| """ | |
| def _counted(*largs, **kargs): | |
| _counted.invocations += 1 | |
| fn(*largs, **kargs) | |
| _counted.invocations = 0 |
| import datetime | |
| import pytz | |
| from oscar.core.loading import get_model | |
| from ecommerce.courses.models import Course | |
| from ecommerce.invoice.models import Invoice | |
| Order = get_model('order', 'Order') | |
| OrderLine = get_model('order', 'Line') |
| #!/usr/bin/env bash | |
| git checkout master | |
| git pull | |
| services=(credentials discovery ecommerce) | |
| for service in "${services[@]}" | |
| do |
| # Is the openedx directory useful, or causing pain? The `skip_unless_lms` test decorator seems like an anti-pattern. If an | |
| # app is specific to one project, its code should probably live in that project. This script is meant to help determine how | |
| # many, and which, apps should be moved out of openedx. | |
| import pprint | |
| import os | |
| DJANGO_APP_DIRS = ( | |
| 'cms/djangoapps', |
| """ Create profiles for service users. """ | |
| from django.contrib.auth import get_user_model | |
| from student.models import UserProfile | |
| User = get_user_model() | |
| usernames = ('affiliate_window', 'course_discovery_worker', 'programs_worker', 'sailthru',) | |
| for username in usernames: |