cantino/huginn

View on GitHub
app/views/application/_upgrade_warning.html.erb

Summary

Maintainability
Test Coverage
<% if @twitter_agent %>
  <div class="alert alert-danger" role="alert">
    <p>
      <b>Warning!</b> You need to update your Huginn configuration, so your agents continue to work with the new OAuth services.
    </p>
    <br/>
    <% if @twitter_agent %>
      <p>
        To complete the migration of your <b>Twitter</b> agents you need to update your .env file and add the following two lines:

        <pre>
TWITTER_OAUTH_KEY=<%= @twitter_oauth_key %>
TWITTER_OAUTH_SECRET=<%= @twitter_oauth_secret %>
        </pre>
        To authenticate new accounts with your twitter OAuth application you need to log in the to <a href="https://apps.twitter.com/" target="_blank">twitter application management page</a> and set the callback URL of your application to "http<%= ENV['FORCE_SSL'] == 'true' ? 's' : '' %>://<%= ENV['DOMAIN'] %>/auth/twitter/callback".

      </p>
    <% end %>
  </div>
<% end -%>
<% if @outdated_google_cal_agents && @outdated_google_cal_agents.length > 0 %>
  <dir class="container">
    <div class="alert alert-danger" role="alert">
      <p>
        <b>Warning!</b> Your <b>Google Calendar Publish Agents</b> are using an outdated version of Google Auth. You need to update the agent configuration, possibly with a new keyfile from Google for it to continue to work.
      <br/>
        PKCS12 key files (`.p12`) are no longer supported. Instead use RSA private keys. Edit the agents to see the updated instructions. The `google.key_secret` option is no longer needed, please remove it.
      <br/>
        The format of parameters in events passed to the agent have also changed. Parameters now are expected in underscore_case instead of camelCase (to match Ruby convention). Please update upstream agents that send events to the calendar agent.
      </p>
      <p>
        Outdated agents:
        <ul>
        <% @outdated_google_cal_agents.each do |agent| -%>
          <li><%= link_to(agent.name, edit_agent_path(agent)) %></li>
        <% end -%>
        </ul>
      </p>
    </div>
  </dir>
<% end -%>
<% if @outdated_docker_registry %>
  <dir class="container">
    <div class="alert alert-danger" role="alert">
      <p>
        <b>Warning!</b> This message is informing you that the source from which the Huginn Docker image is obtained needs to be updated.
      </p>
      <br/>
      <p>
        Docker Hub is discontinuing team accounts, and as a result, the Huginn Docker images will now be hosted on GitHub Container Registry (GHCR). Therefore, you need to update your configuration to the new registry.
        <p>
          <ul>
            <li><code>huginn/huginn</code> is now <code>ghcr.io/huginn/huginn</code></li>
            <li><code>huginn/huginn-single-process</code> is now <code>ghcr.io/huginn/huginn-single-process</code></li>
          </ul>
        </p>
      </p>
    </div>
  </dir>
<% end -%>