Skip to content
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

feat(frontend): add url params support in html link #161

Merged
merged 7 commits into from
Jun 1, 2024

Conversation

taylor-wu96
Copy link
Contributor

Description:

  1. use ((url_params)) in your google spreadsheet and all of them will be replaced with the url parameters in the url you given

Screenshots:

  1. the looklike of link
截圖 2024-05-08 下午4 29 52 2. the example of spreadsheet 截圖 2024-05-08 下午4 30 27

fix(app): make dashboard generic and update documantation
fix(backend): add log trace for score report
feat(app): add visual report and download btn
Copy link
Contributor

@soumyaray soumyaray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi folks - please let me know if the suggestions can be implemented or if any are too much to do to release this soon.

Gemfile Outdated
gem 'httparty'
gem 'zlib'


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please avoid two empty lines in a row

@@ -9,6 +9,8 @@
require 'csv'
require 'digest'

require 'fileutils'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove empty line 11


folder_path = File.join(__dir__, "../public")
FileUtils.remove_dir(folder_path)
puts "Folder #{folder_path} has been deleted."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this puts can be removed? I don't see anything in this else block that could fail.

@@ -0,0 +1,138 @@
# frozen_string_literal: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should use 2 spaces for tabs throughout -- it sometimes uses 2 spaces, and sometimes 4 spaces.

@@ -0,0 +1,138 @@
# frozen_string_literal: true

require 'http'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally, alphabetize the order of requires.

Dir.mkdir(@folder_path) unless Dir.exist?(@folder_path)
end

def fetch_and_process_archives(input)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel that fetch archive and process archive should be two different steps!

end
end

def process_archive(archive)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a more descriptive word that 'process'? What is the processing doing?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about 'download_and_decompress_archive_if_recent'?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, better. can omit 'if_recent' in the name

function downloadProcessedLogs(fileName) {
window.location.href = "/analytics/download_logs?file=" + encodeURIComponent(fileName);
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

avoid multiple empty lines (just use one)

else{
param_str += "&" + key + "=" + param_obj[key] ;
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove empty line

Copy link
Contributor

@soumyaray soumyaray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great job! please open an issue about the Date comments I had for application/services/learning_analytics/get_dashboard_log.rb

@taylor-wu96 taylor-wu96 merged commit 9d7c64c into develop Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants