Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Steven O'Neill
    @eveostay
    Hi.. I'm encountering a problem when adding mapboxGL layer to our config as in openplans/shareabouts@fd01af0
    the error is "Uncaught TypeError: L.mapboxGL is not a function"
    in map-view.js:30
    Mjumbe Poe
    @mjumbewu
    @eveostay hm, it looks like the mapboxgl libraries are being loaded if and only if there's a MAPBOX_TOKEN setting in the settings.py file (evidence). Clearly they should be loaded if there are any GL layers at all, so this is a bug. As a workaround, I'd recommend setting a MAPBOX_TOKEN variable in your local settings.
    @eveostay if you'd also leave an issue it would be greatly appreciated.
    Steven O'Neill
    @eveostay
    yay -- thanks so much -- that was my issue
    Steven O'Neill
    @eveostay
    issue added openplans/shareabouts#161
    Steven O'Neill
    @eveostay
    hi again. I apologize for being so full of questions, but I am stuck again, this time on the upload.py script.
    I think I have everything configured correctly, but when I run, I get File "/Users/stevenoneill/Projects/shareabouts-cli-tools/shareabouts_tool.py", line 108, in get_places for places_page in places.fetch_all(**self.fetch_params): AttributeError: 'ShareaboutsPlaceSet' object has no attribute 'fetch_all'
    Steven O'Neill
    @eveostay
    I'm not sure what to make of that....
    Steven O'Neill
    @eveostay
    perhaps the problem is that i am not authenticated properly with our dataset?
    Steven O'Neill
    @eveostay
    may i see an example config file for this script?
    Steven O'Neill
    @eveostay
    i was able to get the import script working, sorry for the interruption...
    Mjumbe Poe
    @mjumbewu
    @eveostay glad to hear it! You do bring up a good point though -- there should definitely be example configurations and better docs for these tools in the repo.
    Steven O'Neill
    @eveostay
    Thanks, and thanks for this fantastic software, @mjumbewu and everyone. I am willing to help out on the doc tasks.
    Steven O'Neill
    @eveostay
    One more question: has anyone seen an intermittent csrf on submitting a survey? We just got a report of one.
    Luke Swart
    @modulitos
    @eveostay Do you have any logging info or error code associated with this issue? Any suggestions on how to reproduce it? I've been running a Shareabouts API for a little over a year, and haven't experience or received any csrf issues. Although, we still need to improve our production monitoring.
    It might also be related to the current Django version, which is 1.7, and deprecated. I am working with a colleague on updating Django and other dependencies, which may solve this issue. Here is our current status: smartercleanup/api#17 and we are looking forward to pushing this upstream!
    Steven O'Neill
    @eveostay
    Thanks @LukeSwart. That's exciting about the new Django version. I'll check in with others about logging info tomorrow.
    Luke Swart
    @modulitos
    Hi all! We are attempting an upgrade to Django 1.8, but we are having issues with moving from South to Django's internal migration system. If you have any feedback, feel free to reach out to me or my colleague. Here is the PR (just for diffs, not yet merge ready): openplans/shareabouts-api#23 and the issue with more details: openplans/shareabouts-api#24
    Mjumbe Poe
    @mjumbewu
    Thanks @LukeSwart! I saw the issues come in. I think in the past, what I've done in cases like this is kept the South migrations in a separate folder and started fresh with Django migrations. I can pull down your PR later and try that out.
    Luke Swart
    @modulitos
    @mjumbewu Yes, the Django migrations were already separated into migrations folder on Shareabouts API. And the South migrations were in a folder named south_migrations. We deleted the south_migrations folders in our PR, and it doesn't seem like it would affect anything since we aren't using South.
    When you said that you "started fresh with Django migrations", do you mean that you would delete the existing Django migrations and re-create them? If so, we have done that for the sa_api_v2 and remote_client_user apps by deleting all items in each app's migrations folder, except the __init__.py file, and ran manage.py makemigrations using 1.8. But the other apps in the repo - cors and apikey, don't have any migrations.
    Also, I suspect there is an issue with the existing migrations in our third-party apps that is causing this error. manage.py showmigrations lists these apps as admin, auth, contenttypes, default, djcelery, kombu_transport_django, oauth2, sessions, and sites (output here: http://ix.io/qoK/bash), so I think we'll need to recreate Django migrations for these apps as well, using 1.8. We are planning to review these third-party apps and re-make the migrations. Does that seem reasonable? Or let me know if you have other suggestions.
    Luke Swart
    @modulitos
    Another approach is to re-order the apps when the migration occurs. That way, we can ensure sa_api_v2 is migrated, and thus the auth_user table is created, before the other apps referencing auth_user are migrated. But I'm not sure whether this is possible or reasonable, due to foreign key or many-to-many relationships.
    Sorry for the long message - but I really appreciate your willingness to help out! And, of course, for creating Shareabouts in the first place =D
    dreking6
    @dreking6
    Good day, I tried updating my shareabouts app recently through my dropbox but got a buildpack error while updating using the heroku dashboard, I'll like to know what has changed and how I can resolve this ,thanks
    Mjumbe Poe
    @mjumbewu
    hey @dreking6, welcome. do you know the last time you had updated shareabouts? is your BUILDPACK_URL set to "https://github.com/ddollar/heroku-buildpack-multi.git" (like at https://github.com/openplans/shareabouts/blob/master/doc/DEPLOY.md#deploying-to-heroku-manually)?
    dreking6
    @dreking6

    I got this error trying the 'BUILDPACK_URL'-----> Fetching set buildpack https://github.com/ddollar/heroku-buildpack-multi.git... done

    ! Push rejected, failed to detect set buildpack https://github.com/ddollar/heroku-buildpack-multi.git

    More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure

    Mjumbe Poe
    @mjumbewu
    @dreking6 hm, my guess is that the .buildpacks file isn't being transferred to Heroku, or that it got dropped while transferring the code to Dropbox. Is there a .buildpacks file in your Dropbox folder?
    dreking6
    @dreking6

    im really sorry for the repeated issues but now im getting this error after uploading .buildpacks -----> Fetching set buildpack https://github.com/ddollar/heroku-buildpack-multi.git... done

    -----> Multipack app detected

    =====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-nodejs.git

    ! Push rejected, failed to compile Multipack app

    Luke Swart
    @modulitos
    Just a heads up, we were able to resolve this issue mentioned earlier: openplans/shareabouts-api#24 Basically, this was resolved by using django-oauth-toolkit instead of django-oauth2-provider. We are currently working to upgrade from DRF 2 to DRF 3 - feel free to reach out with any ideas or suggestions!
    Finn Robertson
    @finnbuster
    Hey Guys. I’m new here. I have a fork that is out of sync with the current openplans shareabouts and I’m trying to update it to latest. I’m at version 3.15.6. Is there anything significant that I should be looking out for before merging in latest changes?
    Trevor Croxson
    @goldpbear
    Hi all-- I just wanted to introduce myself. I've been working on Hey Duwamish!, a Shareabouts fork, for the last few months, mostly on front end features. I'd be interested in sharing ideas about developing front end functionality. Thanks!
    Finn Robertson
    @finnbuster
    Hi Trevor. Me too!
    Frank Hebbert
    @fkh
    @goldpbear the focus effect around the selected icon is great!
    futuresoup
    @futuresoup
    Hey @mjumbewu et al, just wondering if you've all noticed the bug on the Participatory Budgeting map here - http://ideas.pbnyc.org - the place markers show up as extremely small circles, no matter how much you zoom in, they are very tiny and almost impossible to select. We sometimes use this map to demo what's possible with Shareabouts, so it'd be great to have this fix available. It looks like the map is still active, I'm seeing comments from today and yesterday on the activity stream. Hope all is well! :)
    futuresoup
    @futuresoup

    Also - we're curious if there are plans to work on some of the suggestions that Hadassah posted here:
    https://docs.google.com/document/d/1lpg_KTQQ0twXyOTTdGYmo4HHmHZpTVPjmUlPeZ6BGAY/edit

    We are currently working on a GUI editor for admins to edit places from the map itself, and would like to make sure we don't split our efforts in an unproductive way if this is already happening. Or better yet, we could combine efforts and accelerate these much needed improvements :+1:

    Trevor Croxson
    @goldpbear
    @fkh -- thanks! It's basically just a giant css box-shadow that extends beyond the edge of the viewport, but it worked pretty well for this purpose
    Trevor Croxson
    @goldpbear
    Hi all-- I'm wondering if anyone has ever tried to add a new method to an endpoint on the Shareabouts API? We'd like to give authenticated users the ability to send DELETE requests to place attachments from within the app, which as far as I can tell isn't supported outside the admin panel. I've only recently started to familiarize myself with the API codebase, so I thought I'd check here to see if anyone has experience expanding/modifying the API's functionality. Thanks!
    Mjumbe Poe
    @mjumbewu
    @goldpbear you are correct that it is not something that's implemented in the API right now.
    @goldpbear but I do have some experience modifying the API functionality if it's something you want to take a crack at.
    Mjumbe Poe
    @mjumbewu
    @goldpbear think what it would take is an AttachmentInstanceView. If you look in https://github.com/openplans/shareabouts-api/blob/master/src/sa_api_v2/views/base_views.py you'll find the AttachmentListViewclass. The relationship between these would be similar to PlaceListView and PlaceInstanceView.
    Trevor Croxson
    @goldpbear
    @mjumbewu Thanks for the pointers! I'll take a shot at it.
    stevenjan
    @stevenjan

    Hi all - totally new to all of this but I'm looking to build a shareabouts platform for bicycle consultation for a local shire and went the easy route by clicking the 'Deploy to Heroku' button after signing up and paying. It all comes to a halt when deploying the app in the 'Build app' dialogue box: -----> Preparing static assets

       Collectstatic configuration error. To debug, run:
    
       $ heroku run python ./src/manage.py collectstatic --noinput

    -----> Running post-compile hook

    -----> In post-compile hook

    -----> Collecting static files

       Traceback (most recent call last):
    
       django.core.exceptions.ImproperlyConfigured: Cannot determine PostGIS version for database "d6g2cig4dkmrbt". GeoDjango requires at least PostGIS version 1.3. Was the database created from a spatial database template?

    ! Push rejected, failed to compile Multipack app.

    ! Push failed

    stevenjan
    @stevenjan
    Any help would be greatly appreciated! Cheers, Steve
    Mjumbe Poe
    @mjumbewu
    for anyone else wondering about @stevenjan's question above, there's some discussion around it on github at openplans/shareabouts#175
    Eric Sherman
    @easherma
    I'm thinking of forking this for a project, is it still being actively maintained?
    futuresoup
    @futuresoup
    Hi @easherma - we're developing and maintaining a fork of Shareabouts here - http://github.com/mapseed/platform - just invited you to our Gitter room if you have questions or ideas feel free to ping us
    Trevor Croxson
    @goldpbear

    @mjumbewu -- hello! I saw on github that there's some activity around upgrading the shareabouts api to django 1.8. I'm not sure how extensive the upgrade plans are, but @modulitos and @dvalp and I have been working on and off on a 1.8 and DRF 3.x upgrade on our fork of the project here: mapseed/api#106. It's mainly the DRF 3.x upgrade that has been ongoing.

    Anyway, not sure if it's useful for what you're planning, but thought I'd mention it here.