Code Monkey home page Code Monkey logo

maily_herald-webui's People

Contributors

ardahaal avatar ljachymczyk avatar

Stargazers

 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  avatar

maily_herald-webui's Issues

Maily Herald: NoMethodError in MailyHerald::Webui::Dashboard#index

I want to use the Maily Herald as an Advanced email processing solution for Ruby on Rails applications. I have cloned a copy of the application and have setup up.

However, I have been able to setup it up with Ruby on Rails 5.2.3, although some errors which I have solved. But I am currently faced with a Redis issue which I can't tell how to solve it.

I am trying to access the web interface of Maily Herald, but it throws the error NoMethodError in MailyHerald::Webui::Dashboard#index . I have tried to solve it but no solution yet.

I have attached a screenshot of the error as well. Any form of help will be highly appreciated.
Screenshot from 2019-10-08 16-59-33

kaminari conflict (in smart_listing)

I've had a quick look at the ng branches in maily_herald and maily_herald-webui, and tried to get them running with my Rails 5 app. I couldn't get past a kaminari version conflict with the smart_listing gem. This issue has been raised over on the smart_listing project.

I'm using the activeadmin gem, which depends on kaminari >= 1.0.1.

I tried to fork smart_listing and update the dependencies, but I was unable to get the tests to pass on Ruby 2.1.3. And Ruby 2.4.2 requires a big update of all the dependencies (updating to Rails 5.)

So I'm blocked on this for now, but am opening an issue here because I can't wait to use maily_herald in my app. (Especially the web UI.)

context_name is unpermitted when trying to create list from web UI

Hello, Im using Rails 4.2.0 with ruby 2.1.4p265

Im trying to integrate maily_herald and maily_herald_webui to an existing applciation, well the process is going good, it shows the web interface. I began fixing and adding some things you can check them in my pull request #1

Well I began testing the features like create a list through the web UI, well it creates the list the the context_name is always 'nil' so it breaks the app.

I checked the code trying to fix it, but I do not know how to proceed in this case the permitted params for the lists are in

https://github.com/Sology/maily_herald-webui/blob/master/app/controllers/maily_herald/webui/resources_controller.rb#L136-142

well I do not know how that reource_spec.params is working could not find why it is not permitting the context_name param...

any idea?

graph breaks up after send mailing

Hello, Im not sure why is this issue, I created a mailing and then try to send it, it sent in the normal fashion the emails, but wanted to check the graph and it is not appearing (check attachment)
mailyherald

I thought this was some javascript conflict but then I tried witht he test app at https://github.com/Sology/maily_testapp

well I isntalled it, added the seed data, and tried sending the mailing, it sent but the graph dissapeared too...

The javascript console chrome is showing the following message

Uncaught series data needs to be sorted on x values for series name: Delivered

Be careful if you use Friendly IDs

I couldn't figure out why the user interface wasn't working on Rails 5.

But I figured out a fix.

The source of the issue was friendly_id gem that I had installed that allows for user friendly slugs in place of the standard ID URLs. So if you aren't using friendly_id gem - this post is useless to you.

If you are using it, this might save you some time though.

The problem is that the smart_listing gem that renders many of the areas of this maily_herald_webui gem uses automatic defined paths - so it would automatically output the slugs in the URL instead of the ID. (This is correct in almost every case because you generally have control over the controllers ...)

This would be fine - but the controllers in this gem are using .find instead of friendly.find.

My solution?

I over-wrote the finder method in my User model.

def self.find(*args)
    self.friendly.find(*args)
end

This was the cleanest way to do it. I didn't want to override every single controller action that needed friendly.find.

UPDATE: As it turns out, the version of Friendly ID I was running had a bug. In version 5+, you are supposed to be able to add some extenders to your model like so:

class ModelName
      extend FriendlyId
      friendly_id :name, :use => [:slugged, :finders]
end

I was running an out of date version of the gem. So the cleanest fix is to update the gem. Easy!

please check this log

ActionView::Template::Error (Attempting to generate a URL from non-sanitized request parameters! An attacker can inject malicious data into the generated URL, such as changing the host. Whitelist and sanitize passed parameters to be secure.):
00:26:44 web.1 | 7: %th= tw("attributes.email")
00:26:44 web.1 | 8: - unless @mailing
00:26:44 web.1 | 9: %th= tw("attributes.mailing")
00:26:44 web.1 | 10: %th= smart_listing.sortable tw("logs.processing_at"), :processing_at
00:26:44 web.1 | 11: %th= tw("attributes.status")
00:26:44 web.1 | 12: %th
00:26:44 web.1 | 13: %tbody

I've just set maily_herald.config file as like follow
MailyHerald.setup do |config|
config.context :all_users do |context|
context.scope {User.all}
context.destination = :email
context.attributes do |user|
attribute_group(:user) do
attribute(:name) {user.full_name}
attribute(:email) {user.email}
attribute(:created_at) {user.created_at}
end
end
end

config.list :all_users do |list|
list.context_name = :all_users
end

config.one_time_mailing :welcome do |mailing|
mailing.title = "Welcome"
mailing.list = :all_users
mailing.subject = "Hello {{user.name}}!"
mailing.template = "Nice to have you on board. Cheers!"

mailing.start_at = Proc.new{|user| user.created_at + 5.minutes}
# Alternatively you can use Liquid:
# mailing.start_at = "user.created_at | plus: 5, 'minutes'"

mailing.enable

end
end

Why I got this error?

Please help me!!!!

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.