Skip to content

Instantly share code, notes, and snippets.

View radiaph's full-sized avatar

Pradip Hari radiaph

View GitHub Profile
@radiaph
radiaph / v2-todo.txt
Created November 5, 2021 15:11
V2 remaining tasks
infra
v2 compat in v1
db
ingest_session table index on job_key
auth
graphql routes
audit
audit table flow-awareness
audit.py flow-awareness
ticketing
@radiaph
radiaph / flowapi.py (abridged)
Last active January 21, 2021 21:53
Spitball for combined ingest/overlay auth decorator
from functools import wraps
import flask
import flask_restplus
from disco.collections.common.model.auth_resource import AuthResource
from disco.collections.common.model.tenant.flowtype import FlowType
from disco.collections.webserver.api import auth
@radiaph
radiaph / gist:d931eb3ff9f23f1fd336db3122fcd335
Last active April 16, 2021 16:21
Ingest Status data shape working proposal
[
{ // begin Collection Session
"id": 12345,
"parentFlowId": 123, // all other Flows in this Collection Session are children
"flows": [
{
"id": 123,
"meta": {
"sequenceNumber": 12345, // logical timestamp used to impose ordering on asynchronous updates
"type": "WHITE_GLOVE" | "NATIVE_LITE" | "SELF_SERVE_NATIVE" | "SELF_SERVE_LOADFILE" | "SELF_SERVE_OVERLAY" | "SERVER_ADMIN_NATIVE" | "SERVER_ADMIN_LOADFILE" | "SERVER_ADMIN_OVERLAY",
@radiaph
radiaph / dir-structure.txt
Created May 1, 2019 02:35
Proposed new directory structure for collections repo
src
python
sql (currently /src/main/python/disco/collections/common/migration/migrations)
html (currently /src/main/python/disco/collections/templates)
config
test
unit
integration
manual (currently various files in /src/test/python)
data (currently /resources)