GithubHelp home page GithubHelp logo

parmarg / asset_manager Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 4.0 1.38 MB

Asset Manager that will store multiple types of assets including passwords. Fields can be added on the fly on individual assets and security for them.

JavaScript 45.11% CoffeeScript 1.82% Ruby 53.07%

asset_manager's Introduction

Asset Manager

This is a Rails application with Mongo, and Elasticsearch to store IT assets. The system can create multiple fields on the fly and add them to assets for tracking. Every field is searchable and filter can be created based on searches. The system can fetch servers from Rackspace and also create/resize/delete servers from the interface.

Installation

The required software that is needed to run the Asset Manager is

  1. Ruby 1.9.3

  2. Mongo

  3. Elasticsearch

Once the code is downloaded and services installed, install the bundler gem and run the following from the root directory for the asset_manager:

bundle install

Once the gems are installed you can use Sinatra or Passenger to run the app. Before the app is started run the following to setup some basic core database values

rake bootstrap:all

The default login is

admin@assetmanager/assetmanager

asset_manager's People

Contributors

parmarg avatar

Watchers

 avatar

asset_manager's Issues

Error deleting an asset

Attempting to delete an asset yields this error:

http://assetmanager.medu.com/assets/delete/50905488330aec597b000039

"RuntimeError in AssetsController#delete

Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id

Rails.root: /usr/local/asset_manager/releases/20121019184105
Application Trace | Framework Trace | Full Trace

app/helpers/assets_helper.rb:303:in delete_asset' app/controllers/assets_controller.rb:108:indelete'

Request

Parameters:

{"id"=>"50905488330aec597b000039"}

Show session dump

Show env dump
Response

Headers:

None"

Here is the full trace:

"app/helpers/assets_helper.rb:303:in delete_asset' app/controllers/assets_controller.rb:108:indelete'
actionpack (3.2.3) lib/action_controller/metal/implicit_render.rb:4:in send_action' actionpack (3.2.3) lib/abstract_controller/base.rb:167:inprocess_action'
actionpack (3.2.3) lib/action_controller/metal/rendering.rb:10:in process_action' actionpack (3.2.3) lib/abstract_controller/callbacks.rb:18:inblock in process_action'
activesupport (3.2.3) lib/active_support/callbacks.rb:425:in _run__1000659189933161354__process_action__57087030832245557__callbacks' activesupport (3.2.3) lib/active_support/callbacks.rb:405:in__run_callback'
activesupport (3.2.3) lib/active_support/callbacks.rb:385:in _run_process_action_callbacks' activesupport (3.2.3) lib/active_support/callbacks.rb:81:inrun_callbacks'
actionpack (3.2.3) lib/abstract_controller/callbacks.rb:17:in process_action' actionpack (3.2.3) lib/action_controller/metal/rescue.rb:29:inprocess_action'
actionpack (3.2.3) lib/action_controller/metal/instrumentation.rb:30:in block in process_action' activesupport (3.2.3) lib/active_support/notifications.rb:123:inblock in instrument'
activesupport (3.2.3) lib/active_support/notifications/instrumenter.rb:20:in instrument' activesupport (3.2.3) lib/active_support/notifications.rb:123:ininstrument'
actionpack (3.2.3) lib/action_controller/metal/instrumentation.rb:29:in process_action' actionpack (3.2.3) lib/action_controller/metal/params_wrapper.rb:205:inprocess_action'
actionpack (3.2.3) lib/abstract_controller/base.rb:121:in process' actionpack (3.2.3) lib/abstract_controller/rendering.rb:45:inprocess'
actionpack (3.2.3) lib/action_controller/metal.rb:203:in dispatch' actionpack (3.2.3) lib/action_controller/metal/rack_delegation.rb:14:indispatch'
actionpack (3.2.3) lib/action_controller/metal.rb:246:in block in action' actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:73:incall'
actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:73:in dispatch' actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:36:incall'
journey (1.0.4) lib/journey/router.rb:68:in block in call' journey (1.0.4) lib/journey/router.rb:56:ineach'
journey (1.0.4) lib/journey/router.rb:56:in call' actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:600:incall'
warden (1.2.1) lib/warden/manager.rb:35:in block in call' warden (1.2.1) lib/warden/manager.rb:34:incatch'
warden (1.2.1) lib/warden/manager.rb:34:in call' actionpack (3.2.3) lib/action_dispatch/middleware/best_standards_support.rb:17:incall'
rack (1.4.1) lib/rack/etag.rb:23:in call' rack (1.4.1) lib/rack/conditionalget.rb:25:incall'
actionpack (3.2.3) lib/action_dispatch/middleware/head.rb:14:in call' actionpack (3.2.3) lib/action_dispatch/middleware/params_parser.rb:21:incall'
actionpack (3.2.3) lib/action_dispatch/middleware/flash.rb:242:in call' rack (1.4.1) lib/rack/session/abstract/id.rb:205:incontext'
rack (1.4.1) lib/rack/session/abstract/id.rb:200:in call' actionpack (3.2.3) lib/action_dispatch/middleware/cookies.rb:338:incall'
actionpack (3.2.3) lib/action_dispatch/middleware/callbacks.rb:28:in block in call' activesupport (3.2.3) lib/active_support/callbacks.rb:405:in_run__1721309164720351898__call__343642363289524854__callbacks'
activesupport (3.2.3) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.3) lib/active_support/callbacks.rb:385:in_run_call_callbacks'
activesupport (3.2.3) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.3) lib/action_dispatch/middleware/callbacks.rb:27:incall'
actionpack (3.2.3) lib/action_dispatch/middleware/remote_ip.rb:31:in call' actionpack (3.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:16:incall'
actionpack (3.2.3) lib/action_dispatch/middleware/show_exceptions.rb:56:in call' railties (3.2.3) lib/rails/rack/logger.rb:26:incall_app'
railties (3.2.3) lib/rails/rack/logger.rb:16:in call' actionpack (3.2.3) lib/action_dispatch/middleware/request_id.rb:22:incall'
rack (1.4.1) lib/rack/methodoverride.rb:21:in call' rack (1.4.1) lib/rack/runtime.rb:17:incall'
activesupport (3.2.3) lib/active_support/cache/strategy/local_cache.rb:72:in call' rack (1.4.1) lib/rack/lock.rb:15:incall'
actionpack (3.2.3) lib/action_dispatch/middleware/static.rb:62:in call' railties (3.2.3) lib/rails/engine.rb:479:incall'
railties (3.2.3) lib/rails/application.rb:220:in call' railties (3.2.3) lib/rails/railtie/configurable.rb:30:inmethod_missing'
passenger (3.0.17) lib/phusion_passenger/rack/request_handler.rb:96:in process_request' passenger (3.0.17) lib/phusion_passenger/abstract_request_handler.rb:516:inaccept_and_process_next_request'
passenger (3.0.17) lib/phusion_passenger/abstract_request_handler.rb:274:in main_loop' passenger (3.0.17) lib/phusion_passenger/rack/application_spawner.rb:206:instart_request_handler'
passenger (3.0.17) lib/phusion_passenger/rack/application_spawner.rb:171:in block in handle_spawn_application' passenger (3.0.17) lib/phusion_passenger/utils.rb:470:insafe_fork'
passenger (3.0.17) lib/phusion_passenger/rack/application_spawner.rb:166:in handle_spawn_application' passenger (3.0.17) lib/phusion_passenger/abstract_server.rb:357:inserver_main_loop'
passenger (3.0.17) lib/phusion_passenger/abstract_server.rb:206:in start_synchronously' passenger (3.0.17) lib/phusion_passenger/abstract_server.rb:180:instart'
passenger (3.0.17) lib/phusion_passenger/rack/application_spawner.rb:129:in start' passenger (3.0.17) lib/phusion_passenger/spawn_manager.rb:253:inblock (2 levels) in spawn_rack_application'
passenger (3.0.17) lib/phusion_passenger/abstract_server_collection.rb:132:in lookup_or_add' passenger (3.0.17) lib/phusion_passenger/spawn_manager.rb:246:inblock in spawn_rack_application'
passenger (3.0.17) lib/phusion_passenger/abstract_server_collection.rb:82:in block in synchronize' <internal:prelude>:10:insynchronize'
passenger (3.0.17) lib/phusion_passenger/abstract_server_collection.rb:79:in synchronize' passenger (3.0.17) lib/phusion_passenger/spawn_manager.rb:244:inspawn_rack_application'
passenger (3.0.17) lib/phusion_passenger/spawn_manager.rb:137:in spawn_application' passenger (3.0.17) lib/phusion_passenger/spawn_manager.rb:275:inhandle_spawn_application'
passenger (3.0.17) lib/phusion_passenger/abstract_server.rb:357:in server_main_loop' passenger (3.0.17) lib/phusion_passenger/abstract_server.rb:206:instart_synchronously'
passenger (3.0.17) helper-scripts/passenger-spawn-server:99:in `

'"

Dashboard - clicking on module links

In the Dashboard, clicking on the link in either the 'Asset Break Down Quick View' or the 'Recently Added Assets' module is currently not functional.

Search needs the exact operating version number

Steps to reproduction:

  1. Launch app > Search > Asset Type: QA & Development Test Devices > OS Version: 6 > Keypad Type: Touch only > Type: phone > Search > Search returns no results

Problem: It may be beneficial to not necessitate the exact OS version number. Searches may frequently be performed that are looking for a range of OS versions starting with the first number, especially with Android.

"View More" button does nothing

Steps to reproduction:

  1. Login to assetmanager.medu.com > "View More" button > Page performs no action

Problem: The link for the "View More" button does nothing. The link URL is "assetmanager.medu.com/#"

"Asset Breakdown Quick View" link does nothing

Steps to reproduction:

  1. Login to Asset Manager > Click "QA & Development Test Devices" > App performs no action

Problem: The URL for the link mentioned above is "assetmanager.medu.com/#".

Form submission failed error

After editing an asset type (added a field to a screen), attempting to make an edit on an existing record and submitting it yields this error:

"Form submission failed! / You have not answered all required fields"

Can't delete a user

Navigate to Assets > Users > Delete > observe confirmation > click Yes > observe "NameError in Users#delete" message

Full Error:
NameError in Users#delete

Showing /usr/local/asset_manager/releases/20130107004048/app/views/users/delete.html.erb where line #1 raised:

undefined local variable or method `user' for #<#Class:0x000000156894c0:0x0000001478e380>

Extracted source (around line #1):

1:


2:

3: ×
4:

Delete Record

Rails.root: /usr/local/asset_manager/releases/20130107004048
Application Trace | Framework Trace | Full Trace

app/views/users/delete.html.erb:1:in `_app_views_users_delete_html_erb__2106422952054128434_179607960'

Request

Parameters:

{"user_id"=>"50759ef4330aec3a83000002"}

Session dump:

_csrf_token: "jevYnlQqQBzhhBh6i8H8+bte+nJuuadgiElkwC5c0UM="
session_id: "7ab3b4524308443feba4a930dd45e184"
user_return_to: "/"
warden.user.user.key: ["User", [BSON::ObjectId('507ddea9330aec27d2000044')], "$2a$10$wsmq2khT0akNdf0q0XbpX."]
warden.user.user.session: {"last_request_at"=>2013-07-16 17:59:37 UTC}

Env dump:

HTTP_ACCEPT: "text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8"
HTTP_ACCEPT_ENCODING: "gzip, deflate"
HTTP_ACCEPT_LANGUAGE: "en-US,en;q=0.5"
REMOTE_ADDR: "216.55.28.118"
SERVER_NAME: "assetmanager.medu.com"
SERVER_PROTOCOL: "HTTP/1.1"

Set Columns is missing the functionality to remove the third column instead of just resetting

Steps to reproduction:

  1. Login to assetmanager.medu.com > Assets > overview > QA & Development Test Devices > Set Columns > OS > Set Columns > Set Columns > OS Version > Set Columns > Observe that the third column succesfully changes
  2. Set Columns > OS Version > Set Columns > Observe that the third column is not removed when the presently selected option is again selected. There is no apparent way to get rid of the third column after it has been introduced without logging out.

This may be low priority compared to other functionality, but may still be valuable/easy to fix.

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.