-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Split glossary data column in to three columns [PT-187885620]
The new columns are: - res_N_glossary_text_definitions - res_N_glossary_audio_definitions - res_N_glossary_audio_link This also adds a module to generate portal report urls and offering_id to the details report.
- Loading branch information
1 parent
3f8758c
commit 803abd8
Showing
12 changed files
with
160 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
defmodule ReportServer.PostProcessing.JobParams do | ||
defstruct mode: nil, input_header: [], input_header_map: %{}, output_header: [], output_header_map: %{}, step_state: %{}, rows_processed: 0 | ||
defstruct mode: nil, input_header: [], input_header_map: %{}, output_header: [], output_header_map: %{}, step_state: %{}, rows_processed: 0, portal_url: nil | ||
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
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,26 @@ | ||
defmodule ReportServerWeb.PortalReport do | ||
def get_url() do | ||
Application.get_env(:report_server, :portal_report) | ||
|> Keyword.get(:url, "https://portal-report.concord.org/branch/master/") | ||
end | ||
|
||
def glossary_audio_link(opts) do | ||
required_keys = [:auth_domain, :firebase_app, :source, :portal_url, :class_id, :offering_id, :student_id, :key] | ||
|
||
if Enum.all?(required_keys, &Keyword.has_key?(opts, &1)) do | ||
auth_domain = Keyword.get(opts, :auth_domain) | ||
firebase_app = Keyword.get(opts, :firebase_app) | ||
source = Keyword.get(opts, :source) | ||
portal_url = Keyword.get(opts, :portal_url) | ||
class_id = Keyword.get(opts, :class_id) | ||
offering_id = Keyword.get(opts, :offering_id) | ||
student_id = Keyword.get(opts, :student_id) | ||
key = Keyword.get(opts, :key) | ||
|
||
"#{get_url()}?glossary-audio=true&auth-domain=#{auth_domain}&firebase-app=#{firebase_app}&sourceKey=#{source}&portalUrl=#{portal_url}&classId=#{class_id}&studentId=#{student_id}&offeringId=#{offering_id}&pluginDataKey=#{key}" | ||
else | ||
"" | ||
end | ||
end | ||
|
||
end |