brigadehub / core Goto Github PK
View Code? Open in Web Editor NEWThe backbone of Brigadehub. Handles all of the heavy-lifting re: data and authentication
The backbone of Brigadehub. Handles all of the heavy-lifting re: data and authentication
@howdoicomputer commented on Wed Mar 30 2016
A lot of control flow and object inspection at the moment is occurring through console.log()
. As complexity grows, it'll be beneficial to have aggregated logging for both operational and debugging purposes.
Resources:
@therebelrobot commented on Wed Apr 20 2016
I was being over-ambitious with user roles when I first set it up. There is no current use case differentiating core
from coreLead
at the moment.
config/passport.js
models/Users.js
seeds/development/Users.js
coreLead
from codebase.The following error occurs when you use https:// for both the brigade:url value and the callback value on github
500 AuthorizationError: The redirect_uri MUST match the registered callback URL for this application.
If both of those values are set to http:// and the website is accessed using only http the authorization completes no problem.
@therebelrobot commented on Wed Apr 20 2016
When reseeding users, the main superadmin gets wiped away and can no longer be admin (unles changes are done in DB). Refer brigadehub/brigadehub#189 (comment)
This could be tricky to pull off. Maybe an environment variable for your username? Maybe a standing list of the contributors in the seeds file? Something to look into.
cc @spiffysparrow
@toddseller commented on Wed Oct 26 2016
Keywords can have duplicates and be hard to navigate.
@toddseller commented on Wed Oct 26 2016
Keywords being defined by Brigade admin.
@therebelrobot commented on Wed Jan 27 2016
Events need to sync info from Google Calendars for display/edit
Steps to reproduce:
The request will fail, and if you go to the site outside of that, you'll get an application error
Relevant logs:
Jan 26 15:06:31 sfbrigade heroku/web.1: State changed from up to crashed
Jan 26 15:06:31 sfbrigade app/web.1: /app/node_modules/mongodb-collection-dump/node_modules/mongodb/lib/mongodb/mongo_client.js:423
Jan 26 15:06:31 sfbrigade app/web.1: throw err
Jan 26 15:06:31 sfbrigade app/web.1: ^
Jan 26 15:06:31 sfbrigade app/web.1: TypeError: Cannot read property 'collection' of null
Jan 26 15:06:31 sfbrigade app/web.1: at /app/node_modules/mongodb-collection-dump/index.js:26:24
Jan 26 15:06:31 sfbrigade app/web.1: at /app/node_modules/mongodb-collection-dump/node_modules/mongodb/lib/mongodb/mongo_client.js:420:15
Jan 26 15:06:31 sfbrigade app/web.1: at _combinedTickCallback (internal/process/next_tick.js:67:7)
Jan 26 15:06:31 sfbrigade app/web.1: at process._tickCallback (internal/process/next_tick.js:98:9)
Jan 26 15:06:31 sfbrigade app/web.1: make: *** [start] Error 1
Jan 26 15:06:31 sfbrigade app/web.1: npm ERR! Linux 3.13.0-105-generic
Jan 26 15:06:31 sfbrigade app/web.1: npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"
Jan 26 15:06:31 sfbrigade app/web.1: npm ERR! node v6.9.1
Jan 26 15:06:31 sfbrigade app/web.1: npm ERR! npm v3.10.8
Jan 26 15:06:31 sfbrigade app/web.1: npm ERR! code ELIFECYCLE
Jan 26 15:06:31 sfbrigade app/web.1: npm ERR! [email protected] start: `make start`
Jan 26 15:06:31 sfbrigade app/web.1: npm ERR! Exit status 2
Jan 26 15:06:31 sfbrigade app/web.1: npm ERR!
Jan 26 15:06:31 sfbrigade app/web.1: npm ERR! Failed at the [email protected] start script 'make start'.
Jan 26 15:06:31 sfbrigade app/web.1: npm ERR! Make sure you have the latest version of node.js and npm installed.
Jan 26 15:06:31 sfbrigade app/web.1: npm ERR! If you do, this is most likely a problem with the brigadehub package,
Jan 26 15:06:31 sfbrigade app/web.1: npm ERR! not with npm itself.
Jan 26 15:06:31 sfbrigade app/web.1: npm ERR! Tell the author that this fails on your system:
Jan 26 15:06:31 sfbrigade app/web.1: npm ERR! make start
Jan 26 15:06:31 sfbrigade app/web.1: npm ERR! You can get information on how to open an issue for this project with:
Jan 26 15:06:31 sfbrigade app/web.1: npm ERR! npm bugs brigadehub
Jan 26 15:06:31 sfbrigade app/web.1: npm ERR! Or if that isn't available, you can get their info via:
Jan 26 15:06:31 sfbrigade app/web.1: npm ERR! npm owner ls brigadehub
Jan 26 15:06:31 sfbrigade app/web.1: npm ERR! There is likely additional logging output above.
Jan 26 15:06:31 sfbrigade app/web.1: npm ERR! Please include the following file with any support request:
Jan 26 15:06:31 sfbrigade app/web.1: npm ERR! /app/npm-debug.log
Jan 26 15:06:32 sfbrigade heroku/router: sock=backend at=error code=H18 desc="Server Request Interrupted" method=GET path="/api/db/backup?token=[redacted]" host=codeforsanfrancisco.org request_id=[redacted] fwd="[redacted]" dyno=web.1 connect=0ms service=521ms status=503 bytes=
Jan 26 15:06:32 sfbrigade heroku/web.1: Process exited with status 1
installation: codeforsanfrancisco.org
relevant logs:
Jan 26 14:26:55 sfbrigade app/web.1: TypeError: Cannot convert undefined or null to object
Jan 26 14:26:55 sfbrigade app/web.1: at req.mrt.result.req.mrt.result.map (/app/node_modules/brigadehub-core/helpers/mortimer/checkinResource.js:14:23)
Jan 26 14:26:55 sfbrigade app/web.1: at Array.map (native)
Jan 26 14:26:55 sfbrigade app/web.1: at /app/node_modules/brigadehub-core/helpers/mortimer/checkinResource.js:12:39
Jan 26 14:26:55 sfbrigade app/web.1: at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
Jan 26 14:26:55 sfbrigade app/web.1: at next (/app/node_modules/express/lib/router/route.js:131:13)
Jan 26 14:26:55 sfbrigade app/web.1: at req.(anonymous function).query.exec (/app/node_modules/mortimer/lib/Resource.js:524:24)
Jan 26 14:26:55 sfbrigade app/web.1: at Query.<anonymous> (/app/node_modules/mongoose/lib/query.js:2180:28)
Jan 26 14:26:55 sfbrigade app/web.1: at /app/node_modules/kareem/index.js:177:19
Jan 26 14:26:55 sfbrigade app/web.1: at /app/node_modules/kareem/index.js:123:27
Jan 26 14:26:55 sfbrigade app/web.1: at Promise.all.then (/app/node_modules/brigadehub-core/models/Checkins/index.js:39:5)
Jan 26 14:26:55 sfbrigade app/web.1: at process._tickCallback (internal/process/next_tick.js:103:7)
Jan 26 14:26:55 sfbrigade app/web.1: GET /api/checkins?date__gt=1484951199740 500 98.443 ms - -
Will pull a copy of the checkins db to inspect for malformed data.
@davidcarvel commented on Wed May 25 2016
The "Fetch users from SF Brigade" button is on the Manage Users page. Right now, this is shown to every user. This should only be shown to the superuser role.
From Home > click on your profile in upper right > Manage Users
Remember to use helpful labels and milestones. If you use the "help wanted" label, Code for America will promote it widely.
@therebelrobot commented on Wed Jun 22 2016
All syncing buttons have been moved into the manage brigade page, which is only accessible via superadmins. This will help with that issue, but there needs to be a better solution for this. Keeping open to build in proper handling of when superadmins are not admins over github org.
@pspeter3 commented on Wed Apr 13 2016
Describe adding/removing objects/properties
@pspeter3 commented on Thu Apr 14 2016
@therebelrobot I added this page https://github.com/sfbrigade/brigadehub/wiki/Modifying-The-Data-Model I need to look up how indexes in MongoDb works so we can have efficient queries.
@therebelrobot commented on Sun May 15 2016
These sections should probably be built out more. Will look into it this upcoming week.
When taking inventory for brigadehub/theme-admin-c4sf#4, the underlying data model has been ducttaped together, with duplicate info and info that should never be in there. This needs to be refactored to better reflect the data that is specific to the brigade alone, namespaced and cordoned off for different uses (theme settings, auth settings, general info, etc.)
@therebelrobot commented on Thu Nov 10 2016
I'm not sure if this is the right repo to be filing this issue in (there are a few repos that seem related to the website), but when I tried "sending a message to the brigade" by using the form on this page: http://codeforsanfrancisco.org/contact
I got a page with the following error after clicking "Send Message":
Cannot POST /contact/message/new
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.