New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Activity trello integration #1
Comments
@0mongoose , I can't find the trello config file in this path |
@mohamedabbasos you need first to checkout to trello_integration branch instead of working on master and in this branch you will find the file. |
@arwaahmed thanks. |
app_env_vars.rb should be created by you with app_env_vars_example.rb as a reference. It won't be pushed to the repo, since it is include in the .gitignore file. |
@arwaahmed i got it , thanks i pull the branch and create the file
The app opened successfully in the browser , i logged in with the demo data but when i trying to add a new project in the path
the same error appears when i try to add new activity or list members or donors .. etc
|
@mohamedabbasos The cause of the error is that the current user is assigned to the role Guest which has limited access. As for configuration (though not related to the error you mentioned) it seems where you put them is fine as long as you used a valid email credentials in the /config/initializers/app_env_vars.rb and changed the /config/initializers/setup_mailer.rb accordingly |
I was cloned a few days ago (about two days), and the last commit to the project before that and for this |
@mohamedabbasos Or as an alternative you can make sure that the role admin has permissions {all: true} and then set role_id for your user to the id of that role. As for smtp settings you need to use your own private account. |
@arwaahmed And this mean its updated :/ Because its congruous with your words and with the code here:
OK , But i don't know tell now whats the importance of this part ? and is it related to the issue ? |
@mohamedabbasos As for SMTP settings, it is not really related to the issue . It is needed when creating a new user. To escape it set confirmed_at to Time.now(for instance), and no confirmation email would be sent. This is as the creation of user in seed file: As for the role issue the lines of code you mentioned earlier is not up to date. Please pull first. You can either reseed database after clearing users and roles tables and it will work fine. Or you can copy the the lines of code in seed to the rails console, whatever work for you that will achieve the result of a user has the role with permissions: |
We've already added trello integration for projects, by making each project create a board, and a webhook to change the project based on changes to the board. We'd like each activity to create a card and checklist, and keep references to them, as well as creating a webhook to change the status of the card based on the list it is in.
The breakdown is:
To learn more about migration check the railsdocs link: http://edgeguides.rubyonrails.org/active_record_migrations.html
hint: use an
after_create
callbackWe've already created a branch called trello_integration which includes tests to help guide the process and ensure that the results are as expected. To run them, run rspec spec/models/activity_spec.rb. Make sure all your work is done in this branch.
P.S: The trello member token and trello developer key are saved as environment variables in a file in the
/config/initializers/app_env_vars.rb
. There's is an example one in/config/initializers/app_env_vars_example.rb
, which you should rename and add your own keys to. Note that is part of the.gitignore
file for security reasons. You will also need to change the/config/initializers/setup_mailer.rb
file if you want to use mail functionality.The text was updated successfully, but these errors were encountered: