Skip to content

Commit ca454d9

Browse files
author
Omar Amrani
committed
Code refactoring
1 parent 146c622 commit ca454d9

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ implements the following features:
2323
* **Retry mechanism**: The Teamtailor Api Client will retry the failed request up to 3 times when a rate limit exceeded
2424
error is thrown. After that, it will raise an Error to the user.
2525
* **Caching requests**: To avoid unnecessary API calls and improve the speed, the HTTP requests made will automatically
26-
be cached (in Redis) for 10 min.
26+
be cached (in Redis) for 1 hour.
2727
* **Parallelized HTTP requests**: The client interacts with Teamtailor public API using the
2828
popular [Typhoeus gem](https://github.com/typhoeus/typhoeus). It's basically a wrapper around libcurl library and it
2929
allows to make fast and reliable concurrent http requests.

app/views/candidates/index.html.erb

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
<% end %>
2626
</div>
2727

28+
<%= render 'shared_partials/error_message' %>
29+
2830
<div class="resource-list__table">
2931
<table>
3032
<tr>

app/views/dashboards/index.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="dashboard">
2-
<h1>👋 Welcome to the Teamtailor Import Export tool</h1>
2+
<h1>👋 Welcome to the Teamtailor Export tool</h1>
33

44
<% if @api_key.blank? %>
55
<p class="dashboard__instruction">To start using tool, please enter your API key. You can find istruction how to generate it <a href="https://support.teamtailor.com/en/articles/5338195-use-our-teamtailor-api">here</a></p>
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
require "typhoeus/cache/redis"
22

33
redis = Redis.new
4-
Typhoeus::Config.cache = Typhoeus::Cache::Redis.new(redis, default_ttl: 600)
4+
Typhoeus::Config.cache = Typhoeus::Cache::Redis.new(redis, default_ttl: 3600)

0 commit comments

Comments
 (0)