Coder Social home page Coder Social logo

safetymonkey / asq Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 1.42 MB

Automated SQL Queries

License: MIT License

Ruby 16.51% JavaScript 60.42% HTML 4.75% CoffeeScript 0.08% CSS 17.94% SCSS 0.30%
cancancan database-access databases devise rails rails-application rails5 ruby ruby-on-rails

asq's People

Contributors

depfu[bot] avatar greghxc avatar safetymonkey avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

marchex

asq's Issues

Fix pending test for FileDeliveryService

`Pending: (Failures listed here are expected and do not affect your suite's status)

  1. FileDeliveryService joins file name and directory name

    brittle test; refactor path requirement

    Failure/Error: expect(true).to be_falsey

    expected: falsey value
    got: true

    ./spec/services/file_delivery_service_spec.rb:26:in `block (2 levels) in <top (required)>'

Finished in 12.96 seconds (files took 7.46 seconds to load)
350 examples, 0 failures, 1 pending`

Find way to resolve db:environment:set message when running rspec

When I run rspec I get the following complaint up top. The rspec still runs, but it's irritating.

rails aborted!
ActiveRecord::NoEnvironmentInSchemaError:

Environment data not found in the schema. To resolve this issue, run:

    bin/rails db:environment:set RAILS_ENV=test

bin/rails:4:in require' bin/rails:4:in

'
Tasks: TOP => db:test:load => db:test:purge => db:check_protected_environments

"Users" page visible to all

Users page is visible to non-logged in users.

Permissions may be appropriately limited/broken. Haven't tested.

Create easy user approval screen for admins

Right now new users have to be approved by admins before they can login. Would be nice if admins saw an alert about pending approvals and had an easy screen to review and approve from.

LDAP errors in Rspec

Specifically, ./spec/features/signup_spec.rb.
Need to fix this with fake LDAP

Failures:

  1. the signup process with valid information requires admin approval
    Failure/Error: Devise::LDAP::Adapter.get_ldap_param(login, attr_name).first

    Net::LDAP::Error:
    No such address or other socket error.

    ./app/models/user.rb:45:in `ldap_attr'

    ./app/models/user.rb:40:in `get_ldap_params'

    ./spec/features/signup_spec.rb:16:in `block (3 levels) in <top (required)>'

    ------------------

    --- Caused by: ---

    SocketError:

    getaddrinfo: nodename nor servname provided, or not known

    ./app/models/user.rb:45:in `ldap_attr'

Some rspec tests fail if LDAP info is bad

Specifically, ./spec/features/signup_spec.rb.
Need to fix this with fake LDAP

Failures:

  1) the signup process with valid information requires admin approval
     Failure/Error: Devise::LDAP::Adapter.get_ldap_param(login, attr_name).first

     Net::LDAP::Error:
       No such address or other socket error.
     # ./app/models/user.rb:45:in `ldap_attr'
     # ./app/models/user.rb:40:in `get_ldap_params'
     # ./spec/features/signup_spec.rb:16:in `block (3 levels) in <top (required)>'
     # ------------------
     # --- Caused by: ---
     # SocketError:
     #   getaddrinfo: nodename nor servname provided, or not known
     #   ./app/models/user.rb:45:in `ldap_attr'

Depfu Error: Depfu is stuck and needs your help

Hello,

⚠️ We're getting errors with this repo and have given up after trying several times.

In most cases that means something is wrong with your current Bundler setup and we can't fix it automatically:

• Error details:
yank downgrade url 0.3.1
• Error details:
Your bundle is locked to url (0.3.2), but that version could not be found in any of the sources listed in your Gemfile.
• Error details:
yank downgrade

After you've fixed the problem, please activate this project again in the Depfu Dashboard.

👉 We will not send you further PRs until this is fixed and the repo is activated again.

If you need help or this looks like an error on our side, please send us an email.

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.