profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/patcon/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Patrick Connolly patcon @CivicTechTO @hyphacoop Waffles http://nodescription.net and this is the wonder that keeps the stars apart. #civictechto orgnzr #devops #opengov #blockchain #ethereum #privacy #minimalism #fireescapist #urboutdoorsman

bflad/chef-stash 37

Chef Cookbook for Atlassian Stash

cromulus/vagrant-rsync 14

A simple little vagrant plugin to make it easy to rsync your shared folders.

benhylau/ssbc-grants-scuttlemesh 12

SSBC grant for RPi ScuttleMesh workshop

cadecairos/matterbridge-heroku 7

An inline buildpack for deploying a mattermost-irc bridge

brianfeister/LEMP-WP 4

A Vagrant LEMP box on steroids

CivicTechTO/basecount 3

Mapping the capacity and current occupancy of City of Toronto emergency shelters.

CivicTechTO/codeacross-transport-backend 2

Backend API for Toronto bluetooth travel time data, originated at CodeAcross 2017. Frontend repo here: https://github.com/dolejarz/CodeAcross

CivicTechTO/github-scraper 2

A scraper written for my reseach project on civic hacking.

CivicTechTO/slackbridge 2

Bridging #channels between different Slack teams.

startedTrustroots/trustroots

started time in a day

startedBeWelcome/rox

started time in a day

startedCouchers-org/couchers

started time in a day

pull request commentcompdemocracy/polis-examples

Add reference to work-around for simple embed (and allude to being broken)

friendly bump on this

patcon

comment created time in 2 days

startedhashicorp/terraform-cdk

started time in 2 days

startedMastercard/terraform-provider-restapi

started time in 2 days

startedgathertown/door-by-api

started time in 5 days

startedjerojero/polis-tribu

started time in 5 days

PR closed compdemocracy/polis

Reviewers
Demo: client-admin using razzle with customizations 🔩 p:client-admin ⚒️ infrastructure 🧹 chore

Re-ticketed from https://github.com/pol-is/polis/pull/514

The polis apps have quite a bit of special boilerplate and unique ways of doing things. I was curious whether a framework could help us hide some of this complexity and make updates more straightforward and along a clear path. (e.g., we get new dev standards without thinking too hard)

Razzle is an extension of create-react-app dev framework originally intended to support server-side rendered (SSR) apps. But relevant to us, it has added a mode that reverts back to single-page app (SPA). Razzle's SPA mode effectively offers the developer CRA with ability to customize webpack, which create-react-app doesn't have.

About Razzle

✅ Last commit: 3 days ago :family: Contributors: 132 :star: Stars: 9.7k 🔨 Used by: 1,770 projects

Screen Shot 2020-11-14 at 8 02 51 PM

To Do

  • [x] gzip compression
  • [x] geneate headersJson
  • [x] remove deploy scripts
  • [x] remove webpack config
  • [x] move polis.config.js into .env
  • [x] get docker-compose build working
  • [x] remove dev-server.js
  • [x] clean extraneous package inclusions from package.json
  • [x] fix globals usage
  • [x] webpack deploy to s3
    • [x] test
  • [x] add bundle analyzer npm script
  • [x] webpack deploy via scp [?] wontdo https://github.com/pol-is/polis/pull/515#issuecomment-672977172
  • [x] remove gulpfile
+15871 -9076

11 comments

43 changed files

patcon

pr closed time in 15 days

pull request commentcompdemocracy/polis

Demo: client-admin using razzle with customizations

Thanks all, but my sense is that this isn't the right approach for this project, so I'm just going to pull the band-aid and close this, so something else can be started. If this is premature, please do re-open, but I feel like I've just drawn this out 🙃

patcon

comment created time in 15 days

pull request commentcompdemocracy/polis

Demo: client-admin using razzle with customizations

Could probably recreate this with CRACO so as to be rewiring changes into CRA directly instead of using razzle (which natively allows rewiring). I opted for razzle because the maintainer of the leading "rewiring" tool (react-app-rewired: 8.4k stars) seemed to recommend it:

Note: I personally use next.js or Razzle which both support custom Webpack out of the box. -- timarney

patcon

comment created time in 15 days

pull request commentcompdemocracy/polis

Demo: client-admin using razzle with customizations

IIRC @colinmegill seemed apposed to this (I think on the grounds that Razzle was built for something different (SSR), and may be too opinionated for our needs)

I recall it being that CRA was seen as more suitable to "toy web apps", not a production app like polis.

It looks like (as it stands) this PR would add nearly 16k lines and remove only 9k.

Vast majority of that is lockfile metadata. I believe all other files touched either disappear, get smaller, or stay the same. Compare dev branch's root dir (32 files) with create-react-app branch's root dir (16 files)

Def eager to hear @ballPointPenguin chime in on his perspective, but also eager to see this tossed out, and let someone else take a go. If that person experiences the same frustrations that led me to create this (e.g., recreating lots of CRA's webpack config and worrying about the maintenance burden, etc), then there'll be two people advocating for such an approach instead of just one.

Again, 171 LOC in razzle.config.js (a webpack analog) is what the crux of this is (replacing 508 LOC in gulpfile), with minimal cost to walk it back and remove razzle if someone later feels like hand-assembling the webpack config later.

patcon

comment created time in 15 days

PR opened compdemocracy/polis

Fix README typos and broken build status image

Seems these broke during the migration

+2 -2

0 comment

1 changed file

pr created time in 15 days

push eventpatcon/polis

Patrick Connolly

commit sha f61f19c0450542f74bd25489cead4861ae7dabc6

Fixed README typos and broken build status image.

view details

push time in 15 days

starteddecalage2/oletools

started time in 18 days

push eventhyphacoop/start-map

snyk-bot

commit sha f9916044ac1d18daf47c6dbe7a55f5a77e0c0d88

fix: package.json & package-lock.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-TAR-1579147 - https://snyk.io/vuln/SNYK-JS-TAR-1579152 - https://snyk.io/vuln/SNYK-JS-TAR-1579155

view details

push time in 19 days

create barnchhyphacoop/start-map

branch : snyk-fix-d9f41d1d28f5148894a661289f919647

created branch time in 19 days

issue commentcompdemocracy/polis

CAS Authentication?

Related: https://github.com/compdemocracy/polis-examples/issues/2#issuecomment-907884261

tl;dr - not a fully integrated solution, but as a workaround, added example of how to use any arbitrary auth provider for gating polis convo access (via Auth0 SaaS provider) by using a simple HTML website functioning as a wrapper app around a polis embed :)

According to this support doc from auth0, CAS (assuming it's using SAML) might be supported through this Auth0 approach to authentication: https://community.auth0.com/t/how-to-connect-to-cas-identity-provider/6247 (I have no experience and can't offer any support except a link... sorry!)

edsu

comment created time in 22 days

issue commentcompdemocracy/polis

Additional login providers

Related: https://github.com/compdemocracy/polis-examples/issues/2#issuecomment-907884261

tl;dr - added example of how to use any arbitrary auth provider for gating polis convo access (via Auth0 SaaS provider) by using a simple HTML website functioning as a wrapper app around a polis embed :)

patcon

comment created time in 22 days

startedfulldecent/system-bus-radio

started time in 22 days

push eventcompdemocracy/polis-examples

Patrick Connolly

commit sha 518e8ccee403f403517ca695c530ce8b3182325a

Insert polis conversation on login.

view details

Patrick Connolly

commit sha 2d005c735ae3f3f188761c4f9cf72e9ed8b2074c

Try null for baseurl and url.

view details

push time in 22 days

pull request commentcompdemocracy/polis-examples

Added auth0 external authentication provider example

Here's how comments look when left with xid params coming from the external auth provider (in this case, name and avatar from google account): Screen Shot 2021-08-29 at 8 02 37 PM

patcon

comment created time in 22 days

push eventpatcon/polis-examples

Patrick Connolly

commit sha 518e8ccee403f403517ca695c530ce8b3182325a

Insert polis conversation on login.

view details

Patrick Connolly

commit sha 2d005c735ae3f3f188761c4f9cf72e9ed8b2074c

Try null for baseurl and url.

view details

push time in 22 days

push eventpatcon/polis-examples

Patrick Connolly

commit sha cb2034b3bed53fe2d6f9d6886d81310e8bdad0bb

Try null for baseurl and url.

view details

push time in 22 days

push eventpatcon/polis-examples

Patrick Connolly

commit sha 0b06a5e835bf104bc9e188869ce23ad77ccf78cf

Try null for baseurl.

view details

push time in 22 days

push eventpatcon/polis-examples

Patrick Connolly

commit sha 5b2bad7f845049f36d5afa9973c1397a4192d1ed

Try null for baseurl.

view details

push time in 22 days

push eventpatcon/polis-examples

Patrick Connolly

commit sha f6a64a4f40db0d28a8e64d2299d776cf8e5f8d3b

Make use of github-pages gem for local dev.

view details

Patrick Connolly

commit sha 2c35e13224f15e61f790dc7e88691dcaf682b624

Add baseurl and custom url to config.

view details

push time in 22 days

push eventpatcon/polis-examples

Patrick Connolly

commit sha 45f8086e8354e9ad6535c69ad5d6f5cfaf66e6f4

Use site.github.url if available (on github pages).

view details

push time in 22 days

delete branch patcon/polis-examples

delete branch : foo

delete time in 22 days