brentdur / ccm-server Goto Github PK
View Code? Open in Web Editor NEWWIP, backend for CCM-client
WIP, backend for CCM-client
After both participants kill a convo it remains in that participants convo's list. Is this beneficial or determental?
When a broadcast is created it is sent as a singleton message to all users, also pinging them
Applies to talks and events
Render if loaded in browser, json if not.
Possibly render if get request but return json error message if post/put request?
Fail if one field left empty of required fields
Talk:
Msg:
The problem here is that broadcasts will create and use a message to show user's the message text, how will this work for older clients? They just don't get to see the option?
Will create a spreadsheet for a signup and add data to it
Makes use of google docs
For following functions: if auth key fails then use utility to get new refresh
Will close issue #5 when complete
If I am user1, with broadcasts 1 and 2, and I try to kill broadcast 1, both die.
After fixing, need to retest remove users broadcast on test-deploy server
POST /api/talks 200 5183.870 ms - -
GET /api/events 304 7.581 ms - -
GET /api/locations 304 6.812 ms - -
GET /api/messages/mine 304 13.659 ms - -
GET /api/groups 304 22.041 ms - -
GET /api/talks 200 16.106 ms - -
STATUS: 400
HEADERS: {"content-type":"text/plain; charset=UTF-8","date":"Fri, 07 Aug 2015 02:49:06
GMT","expires":"Fri, 07 Aug 2015 02:49:06 GMT","cache-control":"private, max-age=0","x-content-type-
options":"nosniff","x-frame-options":"SAMEORIGIN","x-xss-protection":"1;
mode=block","server":"GSE","alternate-protocol":"443:quic,p=1","accept-ranges":"none","vary":"Accept-
Encoding","transfer-encoding":"chunked"}
BODY: "registration_ids" field cannot be empty
If Req.body.address, line 39 of events controller
Field | Type | Purpose |
---|---|---|
alive | boolean | a conversation should be considered alive only when both parties have not deleted it from their phones |
minister | object | matches the "participant" object |
participant | object | representation of a person in the conversation |
user | -id | id of participant document |
alive | -boolean | whether this user considers this conversation to be alive or not, whether it appears on their phone or not |
readLast | -boolean | whether this user read the last message |
isAnon | -boolean | whether this user is anonymous in this conversation |
senderID | -string | the id of this person relevant to the conversation, for identifying where the messages came from |
topic | id | the id of the relevant topic |
singleton | boolean | whether this conversation is a one-off or is meant for two way communication,a support function for users that are still on past versions of the app, and are sending single messages |
messages | [id] |
Opted out of participant array for using static group ministers
Ministers can see all conversations
Messages end-points that must stay:
Messages fields that must stay:
Note: essentially conversation will 'replace' the "to" fields and sender_id will replace the "from" fields, conversation now will also hold the relevant data for subject, version(because individual messages are nonmutable), and topic.
Creates two types to fully support backwards compatability between senders and ministers
Scenarios:
Consider which ones, fields to determine which ones, authentication needed
Follow table below
Field | Type | Needed in request | Default | Notes |
---|---|---|---|---|
alive | boolean | no | true | |
minister | object | no | {alive:true, readLast:false, isAnon:false, senderID:random} | |
participant | object | no | ||
user | -id | from req.user | ||
alive | -boolean | true | ||
readLast | -boolean | true | ||
isAnon | -boolean | from topic | ||
senderID | -string | random | ||
topic | id | yes | taken in form of id(same as current new message endpoint) | |
singleton | boolean | no | based off whether the user tried to send a message or convo | |
messages | [id] | yes | first text typed will be made into a message |
Only the minister should get an original notification
Minister also get notification when he updates
If I send a broadcast to all groups, and user1 is in groupA and groupB he will receive the broadcast twice.
After fixing, need to test sending broadcasts on test-deploy server
will allow better connection between maps programs
All of the convo functions seem to fail on the gcm send function.
Need to restest, send, respond, and kill convos on test-deploy
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.