GithubHelp home page GithubHelp logo

riseuplabs / crabgrass-core Goto Github PK

View Code? Open in Web Editor NEW
70.0 70.0 30.0 13.66 MB

This repository has moved to https://0xacab.org/riseuplabs/crabgrass

License: Other

Ruby 71.66% JavaScript 6.81% CSS 14.88% HTML 6.44% Python 0.12% Gherkin 0.06% Shell 0.03%

crabgrass-core's People

Contributors

aliaksandrb avatar azul avatar ben-pr-p avatar dependabot[bot] avatar elijh avatar jessib avatar kclair avatar leixet avatar micah avatar nilclass avatar sleazysquid avatar tobasti avatar tubia avatar xxiixxii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

crabgrass-core's Issues

Indexing OpenDocument and PDF files (include files in the search)

We're a group of 30 people who have used crabgrass on we.riseup.net for the last 3, 4 years. Really great to see that development continues now!

One missing feature that has always bugged us all the time is that uploaded LibreOffice files (e.g. meeting meetings, strategic documents and others) are not included in the search.

I think the same goes for PDF files (where pdftotext might be used).

Send mail notifications about pages if email checkbox is checked.

Is there any log when sending emails fails?
These are my settings:

# e.g. smtp
email:
  delivery_method: :smtp
  smtp_settings:
    domain: localhost
    address: smtp.1und1.de
    port: 587
    authentication: :plain
    user_name: [email protected]
    password: XXXXXX

The setting for smtp I have from my provider

EDIT: users get notifications but it still does not send any emails. Maybe I am missing some packages on debian? Or is it easier to configure a sendmail server and do it like that?

Creating account when accepting an invite doesn't work

Hey!

So here is how to reproduce the bug :

  • Create a group
  • In Settings/Permissions, check "Make organisation publicly visible" and "Make members publicly visible" (we didn't check whether the bug still exists when not checking those)
  • Go to Members and Send invites, and send an invite to an email address you control
  • Visit the provided activation link in another browser (I used chromium --incognito)
  • Click "Create account" and fill up the form (I didn't provide an email address)
  • When submitting the form, I got forwarded to this page, which seems really really weird!!!
  • After submitting, the validation code is lost, so I have to click again on the provided link I got by email and there it works

Thanks!

Failed to install

Hello.. I am trying to install crabgrass on a debian machine and it just throws an error. I don't know if this error is with bundler or with the crabgrass gemfile.

I ran the command /usr/local/bin/bundler install and I expected Bundler to install crabgrass

Instead, what actually happened was this error

Error details

    TypeError: no implicit conversion of Array into String
      /usr/lib/ruby/2.1.0/rubygems/specification.rb:2448:in `directory?'
      /usr/lib/ruby/2.1.0/rubygems/specification.rb:2448:in `block in validate'
      /usr/lib/ruby/2.1.0/rubygems/specification.rb:2448:in `delete_if'
      /usr/lib/ruby/2.1.0/rubygems/specification.rb:2448:in `validate'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/rubygems_integration.rb:51:in `block in validate'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/ui/shell.rb:80:in `silence'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/rubygems_integration.rb:51:in `validate'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler.rb:346:in `block in load_gemspec_uncached'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:53:in `chdir'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:53:in `block in chdir'
      /usr/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:52:in `chdir'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler.rb:339:in `load_gemspec_uncached'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler.rb:329:in `load_gemspec'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/source/path.rb:135:in `block in load_spec_files'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/source/path.rb:134:in `each'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/source/path.rb:134:in `load_spec_files'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/source/path.rb:92:in `local_specs'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/source/path.rb:100:in `specs'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/definition.rb:564:in `block in converge_locked_specs'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/definition.rb:546:in `converge_locked_specs'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/definition.rb:192:in `resolve'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/definition.rb:163:in `missing_specs'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/installer.rb:187:in `block in resolve_if_need'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/ui/shell.rb:80:in `silence'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/installer.rb:184:in `resolve_if_need'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/installer.rb:69:in `run'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/installer.rb:21:in `install'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/cli/install.rb:105:in `run'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/cli.rb:172:in `install'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/cli.rb:10:in `start'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/exe/bundler:19:in `block in <top (required)>'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/friendly_errors.rb:7:in `with_friendly_errors'
      /var/lib/gems/2.1.0/gems/bundler-1.11.2/exe/bundler:17:in `<top (required)>'
      /usr/local/bin/bundler:23:in `load'
      /usr/local/bin/bundler:23:in `<main>'

Environment

    Bundler   1.11.2
    Rubygems  2.2.2
    Ruby      2.1.5p273 (2014-11-13 revision 0) [x86_64-linux-gnu]
    GEM_HOME  /var/lib/gems/2.1.0
    GEM_PATH  /var/lib/gems/2.1.0:/home/master/.gem/ruby/2.1.0:/usr/share/rubygems-integration/2.1.0:/usr/share/rubygems-integration/2.1:/usr/share/rubygems-integration/all
    Git       2.1.4

Feature request: Allow a user to add an OpenPGP compatible public key to their profile to receive encrypted emails

When I receive a notification from Crabgrass sent via email, that email leaks some information about my activities on Crabgrass. I use GnuPG wherever I can to encrypt my email for privacy reasons, and this is a suggested best practice by RiseUp's own security guide. However, as far as I know, Crabgrass offers me no way to indicate to it that I would like any emails it sends to me to be encrypted in this way.

Implementing this feature would make me feel better about using the email notifications feature, particularly about using it to notify other collaborators without worrying that the notification will leak info about our organizing activities to the insecure world of email.

Thanks.

Also, for what it's worth, I'd be happy to work on this myself (I just recently wrote WP PGP Encrypted Emails, which is a plugin for WordPress blogs that implements this feature) but I am not a skilled Ruby (on Rails) programmer and might need some general pointers.

Write a simple backup script using wget

During the last two years it was unclear to us, if crabgrass would be continued. So we were fearful of using a maybe discontinued software (deadend)... At the same time having all our group's files and documents on a "foreign" server (that might once be seized or shutdown) and no backup leaves us still a bit "unsettled"

Would be great if there was a way to backup all of a group's content easily. Just having everything in an zip-archive would be fine (simple html as it is seen in the browser), not really database dump. We already thought of crawling all our files using something like wget or ScrabBook, but we were afraid that these tools might hit the "Delete" links within crabgrass and therefore accidentically remove all our content.

Thumbnail generation fails for PDFs or OpenDocument

This is a follow-up from #384.

For various "supported" files the thumbnail generation often fails. Here is an example file generated using simple-scan (the Ubuntu default scan program): https://seacloud.cc/f/d4fbcb9078/ The PDF is actually fine (interestingly, I also cannot upload this PDF here at github, too. OTHO, thumbnail generation works at seacloud):

$ file just_a_test_scanned_pdf.pdf 
just_a_test_scanned_pdf.pdf: PDF document, version 1.3

But #384 nonetheless cannot created a thumbnail.

For OpenDocument it sometimes fails and sometimes works (I could maybe send you files privately)

Incompatibility to other databases due to index on partial column value

Databases like sqlite or PostgreSQL do not support indices on partical column values, As index creation seems to be hard coded in the schema, setup of other Databases will fail, e.g.

SQLite3::SQLException: near "(": syntax error: CREATE INDEX subject_0_4_0 ON activities (subject_id,subject_type(4),access)

Is there a special reason why crabgrass needs indices on partial values only? Is that reason strong enoug to break compatibility with other databases?

Search/Filter by Starred pages

I can Star a page, but there is no way to list my starred pages. I suggest add a filter item in the page listing and/or show starred pages at top. Thanks!

[Star feature]

screenshot from 2016-06-18 22-30-22

[Filter options]

screenshot from 2016-06-18 22-31-24

Updating profile image does not change profile image at older files

I've changed my image under Settings > Icon to another image (anyway, why is the profile image called "Icon"? (german)).

Afterwards all new pages and files I upload have the new image attached to them (good!). However, at the old files (that I upload before changing the image) there is still my old profile image (bad!)

This causes confusion as one might think that these are two different persons. (Actually, I just changed my profile image to a photo of mine because someone with the same first name joined our group... Now it's really a bit confusing, 2 people with similar name and 3 photos/icons ;-)

Maybe an reindexing of the user's files or similar should be done when changing the image.

rake cg:compile_assets aborted

While trying to deploy crabgrass I get the following:

rake cg:compile_assets --trace
rake aborted!
Don't know how to build task 'cg:compile_assets'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/task_manager.rb:62:in `[]'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:149:in `invoke_task'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
/var/lib/gems/2.1.0/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'

[UX] Preview area: Thumbnail link to open document / pdf is way too small

auswahl_069

There are various issues here, in order of priority:

  1. Many users do not find how to open the file because the fallback thumbnail is way to small. I heard this from many people in our group: "I went to the page you sent me, but there was no file"
  2. The thumbnail should have a title attribute, so that hovering with the mouse over it says something like "Click to open"
  3. Thumbnail generation is frequently failing but this is another issue (#385).

Thumbnails itself are nice but not that important, having a tiny thumbnail so that people do not find the actual file is a real showstopper.

For context: We frequently upload OpenDocument, PDFs but also gnucash files.

Failure showing new created Network

ActionController::RoutingError in Groups/home#show

Showing app/views/groups/structures/_show_in_sidebar.html.haml where line #6 raised:

No route matches {:what=>"committees", :updated_at=>1361143475, :action=>"show",   :may_admin=>true, :expires_in=>126031, :authenticity_token=>nil, :lang=>"de",  :_context=>"zukunftssommerwochen", :version=>1, :access=>nil, :path=>nil, :controller=>"groups/home"}

Export the db structure (of a group) so I can setup my own crabcrass

Spawned from #236 (comment):

Main idea is to be able to export one's (group) dataset in order to import it into another crabgrass instance.

The ability to export one's dataset makes using the hosted Crabgrass instance much more approachable because it means that one's data is not forever in some format that is only meaningfully accessible if the remote service is available.

Further, I work in some environments where the absense of a local backup precludes the use of Crabgrass by policy. Adding this feature would help me make the case to certain groups to move to Crabgrass away from less safe and less philosophically aligned alternatives such as Gogle Docs.

See also the many, many dupes of this feature request:

https://labs.riseup.net/code/issues/475
https://labs.riseup.net/code/issues/754
https://labs.riseup.net/code/issues/1270
https://labs.riseup.net/code/issues/1702
https://labs.riseup.net/code/issues/4099
https://labs.riseup.net/code/issues/4419

TL;DR: Please implememt this feature regardless of commitments to keep we.riseup.net alive. It is an important data portability issue and software libre issue on its own merit. Thank you!

@meitar cc

Feature request: Ability to attach (add) an existing attachment from another page in a group

Sometimes I find myself wanting to move an attachment from one page to another. This usually occurs when the attachment (usually a work file such as an image or a PDF) is attached to a page by someone else, but during re-organization, I want to attach it to a different page.

Currently, I am forced to re-upload a new copy of the attached file; this isn't a huge burden but it seems sub-optimal. It also has the potential to cause confusion due to the inherent fragmentation, unless I also remove the attachment from the original page.

This is also distinct from the "File" option available in Crabgrass. I tend to see "File" pages as working documents that my group and I create ourselves, things we iterate over and over, want to keep versions of, and so on. Attachments, on the other hand, are often things we are given from individuals outside our own group, like reports, deliverables, and so on. These are things we should not change ourselves.

It would be great if Crabgrass allowed me to attach a single document to more than one Wiki page, for instance, or at least to be able to re-assign an uploaded attachment asset from one page to another.

Wiki differences showing up instead of page summary

Hi!

I am not sure what is going on, but currently if you visit https://we.riseup.net/cgdev group, its summary (release notes) flashed and after replaced by mess of wiki diff, header and footer sections.

Its hard to describe, just take a look:
wiki

Ubuntu 14.04.2 LTS x86_64
Google Chrome: Version 43.0.2357.125 (64-bit)

Clearing of browser cache does not help.

I'd like to contribute!

Hi I couldn't figure out how else to contact the ppl involved with this project... I'm a new Ruby developer and I'd like to help out with Crabgrass but I'm having issues getting it running locally. Also, I notice it's still running Rails 3. Is an upgrade to Rails 4 or 5 in the works? If anyone is willing to help me get this current version up and running so I can try to help with some Issues, or has any info on Crabgrass' upgrade status, I'd love for you to let me know here or email me at [email protected] so I can contribute. Thanks in advance!

Text of site internal links should extend to Title of link

Seems to me like a regression bug. Prior the 0.6 update when I entered a link like https://we.riseup.net/group+folder/some-document in a wiki then the link would extend to:
<a href="/group+folder/some-document">title of the document</a>

Now it does extend to just the URL (which is of course less meaningfull than the title):
<a href="https://we.riseup.net//group+folder/some-document">we.riseup.net//group+folder/some-document...</a>

I would like to have the old behaviour back ๐Ÿ˜ญ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.