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

Bump nokogiri from 1.10.10 to 1.13.6 #2033

Closed
wants to merge 136 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
3d3f0a5
2021120309 added referral details
kirykr Dec 3, 2021
6e311f5
Merge branch '2021120302-fixed-second-referral-payload' into 20211217…
kirykr Dec 17, 2021
934e43b
added field client_status to referrals
kirykr Dec 17, 2021
292013b
merged with 2021120309
kirykr Dec 17, 2021
adc2ea0
added client status to referral table
kirykr Dec 17, 2021
e51dc6d
change referral field from client status to referral status
kirykr Dec 20, 2021
ff7aa95
added field status to client_share_external_serializer.rb
kirykr Jan 5, 2022
36902db
Merge branch 'stable' into 2021121709-add-status-to-interopability-pa…
kirykr Jan 5, 2022
bef6212
fixed error in app/serializers/organization_client_serializer.rb:91 N…
kirykr Jan 10, 2022
24796bb
working on dashboard V2
kirykr Jan 13, 2022
fe00698
merged with stable
kirykr Jan 17, 2022
f12ce98
merged with stable
kirykr Jan 26, 2022
95d8b2e
added callback update referral in origin NGO if the target NGO accept…
kirykr Jan 26, 2022
1bd56e4
Merge branch 'stable' into 2022011202-feature-dashboard-v2
kirykr Jan 27, 2022
4d4263c
updated high chart font family
kirykr Jan 27, 2022
695ecb7
Merge branch 'stable' into 2022011202-feature-dashboard-v2
kirykr Feb 3, 2022
32bf6ed
working on dashboard client tab
kirykr Feb 3, 2022
71d96ac
fixed error in client.rb#update_referral_status_on_target_ngo
kirykr Feb 10, 2022
cd9da65
Merge branch 'stable' into 2022011202-feature-dashboard-v2
kirykr Feb 14, 2022
d71b4e7
worked on dashboard steps
kirykr Feb 16, 2022
806fc52
2022021611 fixed domain score between rule error in report builder
kirykr Feb 16, 2022
be3bc4f
worked on dashboard active case by donor
kirykr Feb 16, 2022
d9929e0
Merge branch 'stable' into 2022011202-feature-dashboard-v2
kirykr Feb 18, 2022
4bbec6d
finished active case by donor pieChart
kirykr Feb 18, 2022
9f3fe91
Do no update assessment complete date if the assessment already compl…
kirykr Feb 1, 2022
e1ad34a
2021052712 fixed legal document update files on client form
kirykr Feb 3, 2022
bb38a5a
fixed client column picker in report builder section
kirykr Feb 1, 2022
fa4b1c0
show caseworker field on client basic filter
kirykr Feb 3, 2022
9771970
create a script to generate active client who been enrolled in KC or FC
kirykr Feb 11, 2022
3380e41
worked on dashboard steps
kirykr Feb 16, 2022
da95da5
worked on client data logic error
kirykr Feb 25, 2022
e3264cc
added link to clients in client dashboard
kirykr Feb 25, 2022
ddd2e4f
Merge branch '2022011202-feature-dashboard-v2' into 2022011202-featur…
kirykr Feb 25, 2022
8b14928
Merge pull request #2001 from Children-in-Families/2022011202-feature…
kirykr Feb 25, 2022
61e08a2
Merge branch '2021120302-fixed-second-referral-payload' into 20211203…
kirykr Feb 28, 2022
92994b9
Merge branch '2021120302-fixed-second-referral-payload' into 20211217…
kirykr Feb 28, 2022
d7b8bc4
updated dashboard translation
kirykr Feb 28, 2022
7099385
Merge branch 'stable' into 2022011202-feature-dashboard-v2
kirykr Mar 21, 2022
df60018
fixed active program stream dashboard data
kirykr Mar 21, 2022
afba8b7
[IMP] Apply caching
rayuth-you Mar 25, 2022
0f20fa6
fixed translation family type list
kirykr Feb 22, 2022
8ea5a7e
2022021007 fixed error on family delete button
kirykr Feb 10, 2022
7cf60e7
2022022505 fixed delete family error
kirykr Feb 25, 2022
b604a10
fixed government form six called strftime on nil class
kirykr Mar 9, 2022
27ac20b
fixed error called visible_columns on nil class in app/controllers/co…
kirykr Mar 9, 2022
477a58d
added AppSignal deployment notification
kirykr Mar 9, 2022
f7e6736
changed fill name of report builder
kirykr Feb 7, 2022
c770a55
added fcf_report
kirykr Mar 15, 2022
ffe6a8b
update rake fcf report task
kirykr Mar 15, 2022
f297df5
fixed domain score error
kirykr Mar 21, 2022
6792ea1
updated domain_score_sql_builder#domainscore_field_query
kirykr Mar 21, 2022
70eebf9
fixed error in fcf_report.rake
kirykr Mar 21, 2022
9ae3b12
added link to client list on logic error client dashboard
kirykr Mar 25, 2022
fb64842
Merge branch 'stable' into OSC-13
kirykr Mar 25, 2022
0c3ff42
[IMP] Test add cache for SI
Doungdara-We Mar 25, 2022
2b091af
[IMP] Apply caching
rayuth-you Mar 25, 2022
2babbf4
[IMP] Merge branch 'OSC-13'into OSC-13-Cached-7-14
Doungdara-We Mar 25, 2022
b0d9e74
Add Cache
kirykr Mar 25, 2022
8a503ca
Merge commit '2babbf4ba' into OSC-13
kirykr Mar 25, 2022
6f1fbab
fixed error in app/controllers/concerns/client_advanced_searches_conc…
kirykr Mar 25, 2022
2406c84
Cached Setting
kirykr Mar 28, 2022
9a2fcd5
[IMP] Apply cache on geo
rayuth-you Mar 28, 2022
ec868e2
Add Cache to Notification
kirykr Mar 29, 2022
d65a8c8
Merge commit '9a2fcd5c7' into OSC-13
kirykr Mar 29, 2022
480b8bc
[IMP] Cached Pendding Pull
Doungdara-We Mar 29, 2022
279bba1
[IMP] Cached c.get_hotline_field
Doungdara-We Mar 29, 2022
5f013ba
[IMP] Change class.name to static
Doungdara-We Mar 29, 2022
9f55691
Add Cache to User model
kirykr Mar 29, 2022
7396fe8
Merge commit '5f013babe' into OSC-13
kirykr Mar 29, 2022
48d51b5
Update code
kirykr Mar 29, 2022
bf56a37
[IMP] Adjust to static class
rayuth-you Mar 29, 2022
402833c
[IMP] Apply cache to avanced search
rayuth-you Mar 30, 2022
2b6f9a6
Add Cache
kirykr Mar 31, 2022
a2bd264
Merge commit '402833c8a' into OSC-13
kirykr Mar 31, 2022
63000b7
Removed unneeded cache
kirykr Mar 31, 2022
8381ded
fixed error in app/views/families/family_advanced_searches/_form_opti…
kirykr Mar 31, 2022
b1c5155
[IMP] Adjust caching funtion
rayuth-you Mar 31, 2022
4be7e77
update callback in subdistrict
kirykr Mar 31, 2022
ac25193
Update method accessibility in app/models/quantitative_type.rb
kirykr Mar 31, 2022
b8b62a5
Cache FieldSetting legal docs
kirykr Mar 31, 2022
b13fb97
added Cache in Domain.rb and quantitative_type.rb
kirykr Mar 31, 2022
90c0005
Remove inline caching in app/controllers/concerns/client_grid_options…
kirykr Mar 31, 2022
5467f83
refactore client advanced search form in app/views/clients/client_adv…
kirykr Mar 31, 2022
9f2e700
cached visible organization
kirykr Mar 31, 2022
a161229
added index to tables used find_by and add gem lol_dba
kirykr Mar 31, 2022
382dfae
[IMP] Apply cache client grid
rayuth-you Mar 31, 2022
74d8169
[IMP] Adjust cache param referred
rayuth-you Apr 1, 2022
71a1a4f
Update Code using Cache
kirykr Apr 1, 2022
c5d367f
Merge commit '74d81695d' into OSC-13
kirykr Apr 1, 2022
1dc35a5
[IMP] Add cache for domain
rayuth-you Apr 1, 2022
4acc2d0
fixed method error in shared_client.rb
kirykr Apr 1, 2022
2ea4865
Merge commit '1dc35a52d' into OSC-13
kirykr Apr 1, 2022
754a574
Refactored Code
kirykr Apr 1, 2022
833d908
[IMP] Add cache for tracking enrollment
rayuth-you Apr 1, 2022
7a20cc7
fixed error in client search helper
kirykr Apr 4, 2022
919f7cc
fixed error in field_setting.rb
kirykr Apr 4, 2022
41b677f
Fixed error program_streams mapping ids in save_search_helper.rb#50
kirykr Apr 4, 2022
c9b1806
fixed client grid caching
kirykr Apr 4, 2022
a71bbab
Merge branch 'stable' into 2022011202-feature-dashboard-v2
kirykr Apr 4, 2022
1114342
fixed dashboard referral source count and data logic error links
kirykr Apr 4, 2022
ef56342
fixed @custom_fields id mapping in save_search_helper.rb:60
kirykr Apr 4, 2022
71a3026
[IMP] Adjust code with variable cache
rayuth-you Apr 4, 2022
2333db1
fixed custom field Cache error
kirykr Apr 6, 2022
a24f01f
fixed agency mapping name caching
kirykr Apr 6, 2022
cd4edb2
Merge branch '2021052712-update-legal-document-ratanak' into OSC-13
kirykr Apr 7, 2022
297293a
fixed missing translation
kirykr Apr 7, 2022
f24b654
fixed NGO exit date translation missing in client profile
kirykr Apr 8, 2022
4151026
Merge branch 'stable' into OSC-13
kirykr Apr 26, 2022
8c400d9
Add memory cache to staging and production environment
kirykr Apr 26, 2022
5b24658
Merge branch 'stable' into 2021120309-add-repeated-referral-detail-page
kirykr Apr 27, 2022
ff507e5
fixed gender is require on accepting new referral
kirykr Apr 27, 2022
f76b508
Worked on FieldSetting caching
kirykr Apr 28, 2022
4653b05
Fixed FieldSetting Caching
kirykr Apr 28, 2022
a6b8c4c
Merge pull request #2009 from Children-in-Families/2022040811-fix-mis…
kirykr Apr 28, 2022
37748d8
Merge branch 'stable' into 2022021611-fix-domain-score-with-between-rule
kirykr Apr 28, 2022
670c034
Merge pull request #1993 from Children-in-Families/2022021611-fix-dom…
kirykr Apr 28, 2022
176d668
Merge branch 'stable'
kirykr Apr 28, 2022
44a67c0
Merge branch 'stable' into 2021121709-add-status-to-interopability-pa…
kirykr Apr 28, 2022
9992ebe
Merge pull request #1990 from Children-in-Families/2021121709-add-sta…
kirykr Apr 28, 2022
8178d47
Merge pull request #1952 from Children-in-Families/2021120309-add-rep…
kirykr Apr 28, 2022
421ea54
Merge pull request #2021 from Children-in-Families/2022011202-feature…
kirykr Apr 28, 2022
70f0d73
Merge branch 'master' into OSC-13
kirykr Apr 28, 2022
74d103b
Merge pull request #2005 from Children-in-Families/OSC-13
kirykr Apr 28, 2022
ce2d492
Merge branch 'stable'
kirykr Apr 28, 2022
a277a7f
prevented error on migration while referrals column already existed
kirykr Apr 28, 2022
ecf2797
[IMP] Add sleep for test
thorn-lysa May 6, 2022
bc90000
Merge pull request #2025 from Children-in-Families/OSC-18
rayuth-you May 6, 2022
51fcddf
[IMP] Add cache configuration
thorn-lysa May 9, 2022
1ba8512
Merge pull request #2027 from Children-in-Families/OSC-18
thorn-lysa May 9, 2022
221a76f
[IMP] Update test
thorn-lysa May 11, 2022
1dfd3eb
Merge pull request #2029 from Children-in-Families/OSC-18
thorn-lysa May 11, 2022
18ffd09
[IMP] Update report builder test
thorn-lysa May 11, 2022
fc7581c
Merge pull request #2030 from Children-in-Families/OSC-18
thorn-lysa May 11, 2022
b8ccf69
[IMP] Add clear cache test
thorn-lysa May 12, 2022
2866074
Merge pull request #2031 from Children-in-Families/OSC-18
thorn-lysa May 12, 2022
0f038dc
Bump nokogiri from 1.10.10 to 1.13.6
dependabot[bot] May 18, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ruby:2.3.3

RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN curl --silent https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
RUN apt-get update -qq && apt-get install -y nodejs postgresql-client fonts-khmeros
RUN apt-get update -qq && apt-get install -y nodejs postgresql-client fonts-khmeros memcached
RUN mkdir /app
WORKDIR /app

Expand Down Expand Up @@ -30,6 +30,7 @@ RUN bundle install --verbose --jobs 20 --retry 5
RUN gem install solargraph -v 0.39.17 --force
RUN npm install -g yarn
RUN yarn install --check-files
RUN service memcached start

# Copy the main application.
COPY . ./
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ gem 'enumerize', '~> 2.3.1'
gem 'ulid', '~> 1.2'
gem 'aws-healthcheck'
gem 'redis-session-store', '~> 0.11.3'
gem 'dalli', '~> 2.7', '>= 2.7.11'

group :development, :test do
gem 'pry'
Expand Down Expand Up @@ -117,6 +118,7 @@ group :development do
gem 'metainspector'
gem 'flay', '~> 2.12', '>= 2.12.1'
gem 'active_record_doctor', '~> 1.8'
gem 'lol_dba', '~> 2.2'
end

group :test do
Expand Down
15 changes: 11 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ GEM
colored2 (~> 3.1)
crass (1.0.6)
daemons (1.3.1)
dalli (2.7.11)
danger (5.16.1)
claide (~> 1.0)
claide-plugins (>= 0.9.2)
Expand Down Expand Up @@ -512,6 +513,10 @@ GEM
logging (2.2.2)
little-plugger (~> 1.1)
multi_json (~> 1.10)
lol_dba (2.2.0)
actionpack (>= 3.0, < 7.0)
activerecord (>= 3.0, < 7.0)
railties (>= 3.0, < 7.0)
loofah (2.13.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
Expand All @@ -536,7 +541,7 @@ GEM
mime-types-data (3.2022.0105)
mini_magick (4.5.1)
mini_mime (0.1.4)
mini_portile2 (2.4.0)
mini_portile2 (2.8.0)
minitest (5.15.0)
momentjs-rails (2.17.1)
railties (>= 3.1)
Expand Down Expand Up @@ -568,8 +573,8 @@ GEM
net-ssh (>= 2.6.5, < 7.0.0)
net-ssh (6.1.0)
no_proxy_fix (0.1.2)
nokogiri (1.10.10)
mini_portile2 (~> 2.4.0)
nokogiri (1.13.6)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
nokogumbo (2.0.2)
nokogiri (~> 1.8, >= 1.8.4)
Expand Down Expand Up @@ -610,7 +615,7 @@ GEM
slop (~> 3.4)
pundit (1.1.0)
activesupport (>= 3.0.0)
racc (1.5.2)
racc (1.6.0)
rack (1.6.13)
rack-cors (1.0.6)
rack (>= 1.6.0)
Expand Down Expand Up @@ -897,6 +902,7 @@ DEPENDENCIES
chartkick (~> 3.4)
cocoon (~> 1.2, >= 1.2.9)
coffee-rails (~> 4.1.0)
dalli (~> 2.7, >= 2.7.11)
danger (~> 5.16, >= 5.16.1)
database_cleaner (~> 1.5, >= 1.5.1)
datagrid (~> 1.4.2)
Expand Down Expand Up @@ -931,6 +937,7 @@ DEPENDENCIES
launchy (~> 2.4, >= 2.4.3)
letter_opener (~> 1.4.1)
letter_opener_web (~> 1.3, >= 1.3.4)
lol_dba (~> 2.2)
mail_interceptor (~> 0.0.7)
metainspector
mini_magick (~> 4.5)
Expand Down
146 changes: 144 additions & 2 deletions app/assets/javascripts/dashboards/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CIF.DashboardsIndex = do ->
# _clientStatusChart()
_familyType()
_resizeChart()
_clientProgramStreamByGender()
# _clientProgramStreamByGender()
_clientProgramStream()
_initSelect2()
_openTaskListModal()
Expand All @@ -28,6 +28,8 @@ CIF.DashboardsIndex = do ->
_loadModalReminder()
_handleSearchClient()
_handleMultiFormAssessmentCaseNote()
_loadSteps()
_search_client_date_logic_error()

_loadModalReminder = ->
if localStorage.getItem('from login') == 'true'
Expand Down Expand Up @@ -94,8 +96,34 @@ CIF.DashboardsIndex = do ->
element = $('#client-program-stream')
data = $(element).data('content-count')
title = $(element).data('title')

programNames = [
data[0].active_data.map(({name}) ->
name
)
data[1].active_data.map(({name}) ->
name
)
data[2].active_data.map(({name}) ->
name
)
]

categories = _.uniq(_.flatten(programNames))
data =
categories: categories
series: data.map (element, index) ->
{
name: element['name']
data: data[index].active_data.map((subElement) ->
subElement['y']
)
color: if index == 0 then '#f9c00c' else if index == 1 then '#4caf50' else '#00695c'
}

debugger;
report = new CIF.ReportCreator(data, title, '', element)
report.donutChart()
report.barChart()

_clientProgramStream = ->
element = $('#client-by-program-stream')
Expand Down Expand Up @@ -337,4 +365,118 @@ CIF.DashboardsIndex = do ->
$("ul#casenote-tab-dropdown a").addClass('disabled')


_loadSteps = (form) ->
bodyTag = 'div'
rootId = "#rootwizard"
that = @
$(rootId).steps
headerTag: 'h4'
bodyTag: bodyTag
enableAllSteps: true
transitionEffect: 'slideLeft'
autoFocus: true
titleTemplate: '#title#'
labels:
finish: $(rootId).data('finish')
next: $(rootId).data('next')
previous: $(rootId).data('previous')
onInit: (event, currentIndex) ->
currentTab = "#{rootId}-p-#{currentIndex}"
_clientProgramStreamByGender()
return

onStepChanging: (event, currentIndex, newIndex) ->
console.log 'onStepChanging'
currentTab = "#{rootId}-p-#{currentIndex}"
return true

onStepChanged: (event, currentIndex, priorIndex) ->
console.log 'onStepChanged'
currentTab = "#{rootId}-p-#{currentIndex}"
currentStep = $("#{rootId}-p-" + currentIndex)
if $("#{currentTab} #active-client:visible").length
url = $("#active-client").data('url')
_active_client_by_gender(url)
else if $("#{currentTab} #active-case-by-donor:visible").length
url = $("#active-case-by-donor").data('url')
_active_case_by_donor(url)

_active_client_by_gender = (url) ->
element = $('#active-client')
male = $("#rootwizard").data('male')
female = $("#rootwizard").data('female')
other = $("#rootwizard").data('other')
title = element.data('title')
$.ajax
type: 'get'
url: url
dataType: 'JSON'
success: (response) ->
data =
categories: [
'Children'
'Adult'
'Other'
]
series: [
{
name: female
data: [
response.girls
response.adult_females
0
]
color: '#f9c00c'
}
{
name: male
data: [
response.boys
response.adult_males
0
]
color: '#4caf50'
},
{
name: other
data: [0, 0, response.others]
color: '#00695c'
}
]

report = new CIF.ReportCreator(data, title, '', element)
report.columnChart()
error: (response, status, msg) ->
return

_active_case_by_donor = (url) ->
element = $('#active-case-by-donor')
title = element.data('title')
$.ajax
type: 'get'
url: url
dataType: 'JSON'
success: (response) ->
report = new CIF.ReportCreator(response.data, title, '', element)
report._highChartsPieChart()
error: (response, status, msg) ->
return

# Make monochrome colors
_pieColors = do ->
colors = []
base = Highcharts.getOptions().colors[2]
i = undefined
i = 0
while i < 50
# Start out with a darkened base color (negative brighten), and end
# up with a much brighter color
colors.push Highcharts.color(base).brighten((i - 5) / 7).get()
i += 1
colors

_search_client_date_logic_error = ->
$('a[href="#data-validation"]').on 'click', ->
$('#client-date-logic-error').submit()

{ init: _init }
Loading