-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #138 from etalab/ops/bugfixes
Multiple bugfixes
- Loading branch information
Showing
32 changed files
with
185 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
class AuthorizationRequestChangelog < ApplicationRecord | ||
belongs_to :authorization_request | ||
|
||
has_many :events, | ||
class_name: 'AuthorizationRequestEvent', | ||
inverse_of: :entity, | ||
dependent: :destroy | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
class DenialOfAuthorization < ApplicationRecord | ||
validates :reason, presence: true | ||
belongs_to :authorization_request | ||
|
||
has_many :events, | ||
class_name: 'AuthorizationRequestEvent', | ||
inverse_of: :entity, | ||
dependent: :destroy | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
class InstructorModificationRequest < ApplicationRecord | ||
validates :reason, presence: true | ||
belongs_to :authorization_request | ||
|
||
has_many :events, | ||
class_name: 'AuthorizationRequestEvent', | ||
inverse_of: :entity, | ||
dependent: :destroy | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class WebhookUserWithProfileSerializer < ApplicationSerializer | ||
attributes :id, :uid, :email, :given_name, :family_name, :phone_number, :job_title | ||
|
||
def uid = nil | ||
def uid = object.external_id | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<%= t('.text', entity_name:) %> | ||
<%= [t('.text'), entity_name].compact.join(" ") %>, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,10 +152,10 @@ shared: | |
destinataire_donnees_caractere_personnel: "Services marchés d’organismes publics et collectivités locales" | ||
duree_conservation_donnees_caractere_personnel: 36 | ||
contact_metier_type: 'organization' | ||
contact_metier_email: "p.gue@e-attestations.com" | ||
contact_metier_email: "<%= Rails.application.credentials.api_entreprise_e_attestation_contact_metier_email || 'metier-e-attestation@yopmail.com' %>" | ||
contact_metier_phone_number: "0158060016" | ||
contact_technique_type: 'organization' | ||
contact_technique_email: "tech@e-attestations.com" | ||
contact_technique_email: "<%= Rails.application.credentials.api_entreprise_e_attestation_contact_technique_email || 'tech-e-attestation@yopmail.com' %>" | ||
contact_technique_phone_number: "0158060010" | ||
scopes: | ||
- unites_legales_etablissements_insee | ||
|
@@ -225,10 +225,10 @@ shared: | |
destinataire_donnees_caractere_personnel: "Maître d’ouvrage, acheteurs publics dans le cadre de leurs contrôles de la régularité fiscale et sociale des entreprises" | ||
duree_conservation_donnees_caractere_personnel: 36 | ||
contact_metier_type: 'organization' | ||
contact_metier_email: "<%= Rails.application.credentials.api_entreprise_achat_solution_contact_metier_email || 'metier@achat-solution.com' %>" | ||
contact_metier_email: "<%= Rails.application.credentials.api_entreprise_achat_solution_contact_metier_email || 'metier-achat-solution@yopmail.com' %>" | ||
contact_metier_phone_number: "<%= Rails.application.credentials.api_entreprise_achat_solution_contact_metier_phone_number || '0836656565' %>" | ||
contact_technique_type: 'organization' | ||
contact_technique_email: "<%= Rails.application.credentials.api_entreprise_achat_solution_contact_technique_email || 'metier@achat-solution.com' %>" | ||
contact_technique_email: "<%= Rails.application.credentials.api_entreprise_achat_solution_contact_technique_email || 'metier-achat-solution@yopmail.com' %>" | ||
contact_technique_phone_number: "<%= Rails.application.credentials.api_entreprise_achat_solution_contact_technique_phone_number || '0836656565' %>" | ||
scopes: | ||
- unites_legales_etablissements_insee | ||
|
@@ -305,7 +305,7 @@ La plateforme, mise en place pour permettre le dépôt de ces aides publiques et | |
contact_technique_email: '[email protected]' | ||
contact_technique_phone_number: '0175440934' | ||
contact_metier_type: 'organization' | ||
contact_metier_email: "<%= Rails.application.credentials.api_entreprise_atexo_contact_metier_email || 'produit@atexo.com' %>" | ||
contact_metier_email: "<%= Rails.application.credentials.api_entreprise_atexo_contact_metier_email || 'produit-atexo@yopmail.com' %>" | ||
contact_metier_phone_number: '0153430678' | ||
scopes: | ||
- unites_legales_etablissements_insee | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
UGK9Y/kPNvyArcvaTMg/WP1vgGvJOXtAmBvi7h3y+3GYutCFNTTca3AaBhjB1bgaw8xHe6Qhu9PSNxRL8/LwjlQ8zwmLSOr38NBso9jSc1Wt4oaLzkEuS6lleLpczbTlqsQ1Uswunx2RzSP8vRD1U3Wr9x9GC+oZVWP5MV+TU16aszwftMoFyjT7F67L+i3Za4M4mAHBwwpk9A8ZhIGmMo3agHGRS2eLN8CzLRcLBbJ7w6X/Pwxuj3QOIHmryaBjvnQVBZXU5pduM4ADCk0a2HJip+j/5n2WS3OcMkm02wgd7ce0xmvcjYVgE/7D1VX7tJ2D2GSqtOflXSS3RTgSAvseiFYRaiw3bvotoJEGRPxnmYvfHSZnjGgY+Ig3O3sM++XkMkitWe/m1SfLBcIAuSllqMdEV3yxbB4GJsSWEzfQnu5EKKjdMJ8nRrMAWKDFaDoU3+cud4C5MAzsQt1Ho94p3tTVrFaW3ubTunpqHqWTSrVfi7TBjFwblWPniR/SID5sG3XJSOAD3APk/29+ISlR3JdfbUMLTLFBztfI1+VR4qBywCRk9fFmLv9Rr+Yq+lnXtoWj22BOuK0R8gpN3PF2FnYKyw8kVyF1GrGp8NGh+IGwTmXXJQOM3tci4QFFAMOmZlgawlJEeRvWwdFYZCsZMJFkwzQ096FMophInspAY8QxK+bsoO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kVsRnpQdXGLXNEFR7eSd2Fb5m7Q3jiJtmc7pc7ngrPEbFhhPe+o2XUKHFJCAqgkOVa+EeOe2vjzhetk/7b8Tx507TVKKpxYwD1l8UDKQEFKE3fH/XU0eLVEJSBdfGVkXFgtjBxZlOme2lb4ouZQL4DR8EkRzIuDR416Q6tEbVhTTXgMQBS91n794X/aOwdvsG3jm4c4/xJrDQ5Sn4gWWaHKmeBjtq53Zn+QeNk6mu6qMpVCoo0CqxZxGobAdiBvSRIC+3szEbXJGDUI0lmL479AV+s2Y0qrpb+tT3ikGQL+3gjK+XbNDa+HdXNV7Hhdw1k1TfxgNQf902iH2MQWmpIfK315arJNuDb68PH+VzXSa5DG9I+RX/NpqM651YIzz1OzqOn2bmxAs1q7yErkJ6iUILzsLaOOP0xos1Fx2K+L/D5L7UVkoQuedkJKvtsRN0BchzT7y50fLvJ4gvYJcQhinK/goOWst9JajCa5Zrjy5yl6a061yrxiyL70J8c/unYN/yPXCyg7B8JrXXKhxfvg3ZEPb9/QqtVjRGCcJo--0k+80OahCC3tzyrI--sc6g+ueqPUDukPZ7iI9Mzw== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ActiveSupport.on_load(:good_job_application_controller) do | ||
include Authentication | ||
|
||
allow_unauthenticated_access | ||
|
||
before_action do | ||
raise ActionController::RoutingError.new('Not Found') unless current_user&.admin? | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Sentry.init do |config| | ||
config.dsn = Rails.application.credentials.sentry_dsn | ||
config.breadcrumbs_logger = [:sentry_logger, :active_support_logger, :http_logger] | ||
config.enabled_environments = %w[sandbox production] | ||
config.enabled_environments = %w[sandbox staging production] | ||
|
||
config.traces_sample_rate = 1.0 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ fr: | |
email: [email protected] | ||
applicant: | ||
header: | ||
text: <%= ["Bonjour", entity_name].compact.join(" ") %>, | ||
text: 'Bonjour' | ||
footer: | ||
text: L'équipe %{authorization_definition_name} | ||
instruction: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,4 +57,6 @@ | |
resources :messages, only: %w[index create], path: 'messages' | ||
end | ||
end | ||
|
||
mount GoodJob::Engine => '/workers' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.