- Use the `extended_tweet.full_text` property instead of `text`
- Show the time and links to the tweet and event for each tweet
- Clicking on the tweet text replaces it with the embedded tweet widget
Ticket -- https://github.com/cantino/huginn/issues/1914
Testing -- Local huginn setup
About --
Switching as admin to a user is broken if the user is deactivated.
This code makes the 'Become User' buttons invisible if the user to
be impersonated is deactivated. The buttons used to be visible on:
* /admin/users
* /admin/users/XX/edit
Bonus: removes the 'Become User' button from the 'Edit Users' page
if we are the edited `current_user`.
`pluck` used to always trigger a database query. With Rails 5.0.1 it uses data from
already loaded associations, this also includes new records for which we can not
generate agent_paths
Agent#new was by far the slowest action of all controllers. When using
many Agent gems the response time goes up to a point where the user
starts to wonder if something is going wrong. By caching the Agent
description the response time goes down from about 1 second to 100ms
in development.
Especially when using Agent gems it happens that an Agent was deleted from the gem or the user removed a gem from the
configuration. Instead of failing with an Internal Server Error the user now is offered to delete all undefined agents.
`type.constantize` is needed to invoke the Rails auto_loader in development since not all Agent classes are loaded when
the application boots.
* Added `api_key` option to UserLocationAgent
The `api_key` is used on the summary page of the UserLocationAgent
as well as the event detail page to display a location on a Google
Map which requires an API key. Closes#1612
* added link to Google API key documentation
* Start with a stripped copy of the data output agent.
* Run the data from the last event through a liquid template.
* Flatten the secret logic to allow for an easier switch to FormConfigurable.
* Switch to form configurable, and allow the content of the page to be configured.
* Allow the mime type to be changed.
* Cleanup.
* Write how this template works.
* Better default values.
* Cleanup.
* Refactor.
* Start testing.
* Test the validation.
* Test receive.
* Test the happy path through the receive web events.
* Test the authentication.
* This is actually a match.
* Refactor.
* Refactor.
* Refactor for better testing.
* Create a mode that lets the logic change. Start with a merge behavior.
* Refactor.
* Create a form configurable setting to change the mode.
* Document how the modes work.
* Wording change.
* Go with a singular secret.
* Fix typo.
* Fix the tests.
* Test cleanup.
* If not one of two types that receive events, ignore all received events.
* Set up these tests for the next set of changes.
* Isolate the method that gets the data for the liquid template.
* Look up past events to render through the liquid template.
* Implement a limit of 2 events.
* Extract a method.
* Hook the limit to options.
* Implement a limit of X events.
* Implement a date limit.
* Refactor the count limit.
* Limit by date with sql, not in-memory objects.
* This ordering is already built into the scope.
* Refactor the dates a bit.
* Put in a few checks around the date limits.
* Add the last X event options to the form and the documentation.
* Missed one bit of documentation.
* Add a view for a liquid output agent that makes it easy to retrieve the generated URL.
* This agent cannot accept events.
* Hardcode the possibilities instead of inspecting the integer.
* Do not be case sensitive on the date filter.
* Hardcode a limit of 5000, just in case no limit was provided.
* Better checks around the time period parsing.
* Test the hardcodes, and rename for consistency.
* Nevermind on that rename.
* Do not be case sensitive on this mode.
* Test that it works even when the casing on the mode is wrong.
* Here is more descriptive default content.
* Text change.
* The if is no longer necessary.
* Refactor.
* Move the limit down to 1000.
* Put a hard limit of 1000.
* Note the new event limit... limit.
* Validate for a valid event limit.
* Do not throw an error if someone types in a non-integer into this field.
* Text update.
* Typo.
* Add a link to the Liquid Templating engine.
* checking in work for glyph upload
* checking in icon selections
* added more icon options
* work on upload icon
* fix issue
* switched to options for select
* removed wrapper and removed commment
* add migration to support icon
* remove right floating
* rm params session add it to model
* rebuilt the menu
* rm extra div
* converted js to coffee
* quick change in indentation
* using the view helper
* submitting icons and loading into form
* added icon to both scenario export and import
* added icon to spec
* low level caching the icons
* tentative work in making a new coffee class
* renamed js page
* switched to cache in memory and worked on coffee class
* made pathsmatching compatible for all scenarios
* switched to rails root
* fixed all rubocop stylings
* fixed line is too long styling
* rm private method definition
* patch to avoid having no icon
* blank or nil?
* reordering the lines
* tentative work on enable disable all agents within a scenario
* more work with pr
* more work
* better names and save a line of code
* coffeescript to change modal text and hidden disabled value
* redoing coffeescript class to save some code
* initing the function
* updated coffeescript
* change text from specific modal, made names more specific
* updates disabled test and rubocop bug
* improved test and refactored method per rubocop warnings
* switched from 0 to false
* switched from 0 to false and 1 to true
* fixed null bug in postgresql database
* fixed ruby boolean bug
* moved instances into let lazy load and use proper agent fixture
* putting in a different fix
* using existing membership and agent and another version of test
* switch back to 2 not 3 after rm an agent in yml
* made test passed locally
* forgot to remove debuging pp
* small spacing bug
* trying to get rid of newline in file
* typo not agent but scenario
* minor changes to syntax and naming
* rm potential failure and changed update_all statement
* fixing new line issue
* removed unnecessary if else statement from method
Added button to toggle visibility of disabled agents
* Moved index code to separate file
* Added cookie to allow toggling visibility of disabled agents
* Filter disabled agents based on cookie
* Removed js and use correct cookie name
* CR changes
rm req json, not saving file, styled button a bit
skinny controller fat model
minor spacing mistake
build user credentials fixed mass assignment issue
undo mass assignment variables
spec in progress
spec
fixed exception issue
json fixtures
slight change to test
added test to assert credentials created for current user only
added tests to satisfy requirements
refined import method
added status 422
saving two lines of code
one more test
fixed small bug, words changed
minor change in test
styled file upload button
deleted unnecessary spec
switched to modal format
made modal more presentable
minor change to modal
fix indentation issue
ok nested correctly within form tag
quick rewording
changed glyphicon
skip failed jobs locked at and using update all
spec ready as well
rm without protection modify spec
rm unnecessary lines
work on delayed job feature
fixed render json
switched from ok to success
revert render json change for other methods
checking in work
test passed
reverting render and saving a line of code
add back sign in an user
run this on github
altered format.json
rm comment
prevent ajax error head no content