opensrp / opensrp-server-configs Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Add supply catalog table as defined in here
The table should store most of the data in json with only the search fields being saved on their own columns
Strip configs for dependencies that have been removed
Add Migration scripts for Unique Id table.
The table should be moved from MYSQL to PostgreSQL
Add server version on json tables
Related to opensrp/opensrp-server-core#366
sms-notifications
profileQuery structures with radius from coordinates
Query family details
Make residence field on Client JSON index-able on client_metadata
Upgrade postgres on travis to 10 and install Postgis 2.4
Scripts for manually installing Postgres, the Travis image has older JSON-C Libraries breaking the Geoqueries
Create table creation scripts for Team module tables
Add Keycloak Account URL Config
Add Keycloak Realm Config URL
Allow Configuration of the scheduled Tasks under applicationScheduler
so that one can configure the duration the tasks run
Add a maven profile to disable scheduling so that scheduling is done in 1 node of horizontally scaled nodes
Tables:
Fields:
event_metadata
district
division
branch
Village
event
district
division
branch
Village
provider_id
event_type
form_submission_id
base_entity_id
client_meta
address1
address2
address3
village_id
district
division
branch
village
client
server_version
base_entity_id
district
division
branch
village
base_entity_id
Add numerical PK to organization_location to simplify assignment
Rename the settings table scripts they are using the timestamp of last year, its not possible to execute them for existing deployments
20180904141214 ...pending... create settings table.sql
20180904141237 ...pending... create settings metadata table.sql
20181012141507 ...pending... add settings metadata columns team id team location id and provider id
20181012145616 ...pending... alter settings metadata column identifier remove constraint
Create core.template
table with the following fields
Template table (core.templates)
Id (int) id
Template Id - (int unique) (identifier)
Template (Json) (template)
Type (String) (e.g. plan)(type) - in case we want to have templates for other entities in future
Version - (int) (version)
make location tag name unique
replace bigint with bigserial
Avoid creating tablespaces again, if they already exist, to prevent the mybatis migration scripts from failing (not good forcing the scripts to continue if one migration fails).
Since the changelog table is within the opensrp database, while tablespaces live outside this database, we end up in issues if the database is recreated (while the tablespaces still exist).
table : location_tag_map
Define Oauth2 database creation scripts
Define Oauth2 default client configs
In order to support versioning of locations we need to make the following adjustments to the location metadata table
geojson_id
fieldgeojson_id
, vresion
) fieldsAdd an index on the server_version field for the following tables :-
core.event_metadata
core.task_metadata
core.location_metadata
core.structure_metadata
Currently we have a problem with the current organization table. If one revoked assignments for today its not possible to create another assignment for today.
The solution involves
Adding a check constraint such that to_date is always larger than from_date
Delete unique constraint organization_location_organization_id_location_id_plan_id_key
Add a duration dateRange column that will store the duration
Create an index for organization_id, location_id, plan_id, duration
Create an exclusion constraint on organization_id, location_id, plan_id, duration such that we can't have overlapping durations
Current default setting setting makes the server fail on start up
Create core.plan_processing_status
with the following fields :-
Id id
Plan Id FK plan_id (nullable)
Event Id FK event_id (not null)
Template Id FK template_id (Points to core.templates.identifier) (not null)
Status status ( (null|initial - 0) | processing - 1 | complete 2)
Here we can store it as a Postgres Enum. Should be expressive but still efficient as ints.
Date_created date_created timestamp (only on insert)
Last_updated date_updated timestamp (insert, update record)
identifier
& filename
uniqueCreate sequence for generating server versions for
Events
Clients
Locations
Structures
Tasks
Plans
Settings
View configuration
Stock
Reports
Populate the Sequences with the current Max server version
Following the discussions here it is necessary to:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.