-
Notifications
You must be signed in to change notification settings - Fork 2
Hotfix For sofia user accounts #1144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,7 @@ | |
| </h3> | ||
| </div> | ||
| <ul class="list-group list-group-flush"> | ||
| <% if Rails.application.config.x.amber_api_url.present? %> | ||
| <% if Rails.application.config.x.amber_api_host.present? %> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Description: Check for amber_api configuration usage across the codebase
echo "=== Searching for amber_api_host references ==="
rg -n "amber_api_host" --type ruby
echo -e "\n=== Searching for amber_api_url references ==="
rg -n "amber_api_url" --type ruby
echo -e "\n=== Checking config files for amber_api definitions ==="
fd -e rb -e yml config | xargs rg -l "amber_api"Repository: csvalpha/sofia Length of output: 1140 Update configuration references to use The new code uses
Both keys are defined in 🤖 Prompt for AI Agents |
||
| <li class="list-group-item"> | ||
| <p class="card-text mt-2"> | ||
| Log in met een <%= Rails.application.config.x.site_association %> account. | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -24,7 +24,7 @@ | |||||
| </div> | ||||||
| <users-table :users="manual_users" class="mb-5"></users-table> | ||||||
|
|
||||||
| <% if Rails.application.config.x.amber_api_url.present? %> | ||||||
| <% if Rails.application.config.x.amber_api_host.present? %> | ||||||
|
||||||
| <% if Rails.application.config.x.amber_api_host.present? %> | |
| <% if Rails.application.config.x.amber_api_url.present? %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change from
amber_api_urltoamber_api_hostis inconsistent with other parts of the codebase. According toconfig/application.rb, both variables exist:amber_api_hostcontains just the hostname (e.g., "example.com")amber_api_urlcontains the full URL with protocol (e.g., "https://example.com")The
.present?check should remain asamber_api_url.present?to be consistent with other files that useamber_api_urlfor actual API calls (seeapp/controllers/users_controller.rblines 127 and 169,app/models/user.rbline 56, andapp/views/users/show.html.erbline 63).