Skip to content

Commit

Permalink
Merge pull request #2983 from dhis2/dev
Browse files Browse the repository at this point in the history
feat: merge to master Sept 27
  • Loading branch information
jenniferarnesen authored Sep 27, 2023
2 parents d0eeeb4 + 73503ab commit 94e0283
Show file tree
Hide file tree
Showing 70 changed files with 3,006 additions and 780 deletions.
57 changes: 56 additions & 1 deletion .github/workflows/dhis2-verify-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,66 @@ jobs:
!cancelled() &&
github.ref == 'refs/heads/master'
steps:
- name: Checkout code
uses: actions/checkout@master

- name: Extract version
id: extract_version
uses: Saionaro/[email protected]

- name: Send failure message to analytics-internal-bot slack channel
id: slack
uses: slackapi/[email protected]
with:
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
slack-message: ':small_red_triangle_down: Maps-app release <https://github.com/dhis2/maps-app/actions/workflows/dhis2-verify-app.yml?query=branch%3Amaster+is%3Afailure>'
payload: |
{
"text": ":small_red_triangle_down: :maps-app: Maps version ${{ steps.extract_version.outputs.version }} release <https://github.com/dhis2/maps-app/actions/workflows/dhis2-verify-app.yml?query=branch%3Amaster+is%3Afailure|failed>",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":small_red_triangle_down: :maps-app: Maps version ${{ steps.extract_version.outputs.version }} release <https://github.com/dhis2/maps-app/actions/workflows/dhis2-verify-app.yml?query=branch%3Amaster+is%3Afailure|failed>"
}
}
]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

report-release-success:
runs-on: ubuntu-latest
needs: release
if: |
success() &&
!cancelled() &&
github.ref == 'refs/heads/master'
steps:
- name: Checkout code
uses: actions/checkout@master

- name: Extract version
id: extract_version
uses: Saionaro/[email protected]

- name: Send success message to analytics-internal-bot slack channel
id: slack
uses: slackapi/[email protected]
with:
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
payload: |
{
"text": ":large_green_circle: :maps-app: :tada: Maps app release succeeded for version: ${{ steps.extract_version.outputs.version }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":large_green_circle: :maps-app: :tada: Maps version ${{ steps.extract_version.outputs.version }} released <https://github.com/dhis2/maps-app/actions/workflows/dhis2-verify-app.yml?query=branch%3Amaster+is%3Asuccess|successfully>"
}
}
]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
2 changes: 1 addition & 1 deletion .tx/config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[main]
host = https://www.transifex.com
lang_map = fa_AF: prs, uz@Cyrl: uz, uz@Latn: uz_Latn
lang_map = fa_AF: prs, uz@Cyrl: uz_UZ_Cyrl, uz@Latn: uz_UZ_Latn


[o:hisp-uio:p:app-maps:r:en-pot]
Expand Down
29 changes: 29 additions & 0 deletions cypress/integration/interpretations.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,33 @@ context('Interpretations', () => {

deleteMap()
})

it('opens and closes the interpretation panel', () => {
cy.intercept({ method: 'POST', url: /dataStatistics/ }).as(
'postDataStatistics'
)
cy.visit(
'/?id=ZBjCfSaLSqD&interpretationId=yKqhXZdeJ6a',
EXTENDED_TIMEOUT
) //ANC: LLITN coverage district and facility

cy.wait('@postDataStatistics')
.its('response.statusCode')
.should('eq', 201)

cy.getByDataTest('interpretation-modal')
.find('h1')
.contains(
'Viewing interpretation: ANC: LLITN coverage district and facility'
)
.should('be.visible')

cy.getByDataTest('interpretation-modal')
.findByDataTest('dhis2-modal-close-button')
.click()

cy.getByDataTest('interpretation-modal').should('not.exist')

cy.getByDataTest('interpretations-list').should('be.visible')
})
})
42 changes: 42 additions & 0 deletions cypress/integration/smoke.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,46 @@ context('Smoke Test', () => {
Layer.validateCardTitle('ANC 1 Coverage')
cy.get('canvas.maplibregl-canvas').should('be.visible')
})

it('loads with map id and interpretationid lowercase', () => {
cy.intercept({ method: 'POST', url: /dataStatistics/ }).as(
'postDataStatistics'
)
cy.visit(
'/?id=ZBjCfSaLSqD&interpretationid=yKqhXZdeJ6a',
EXTENDED_TIMEOUT
) //ANC: LLITN coverage district and facility

cy.wait('@postDataStatistics')
.its('response.statusCode')
.should('eq', 201)

cy.getByDataTest('interpretation-modal')
.find('h1')
.contains(
'Viewing interpretation: ANC: LLITN coverage district and facility'
)
.should('be.visible')
})

it('loads with map id and interpretationId uppercase', () => {
cy.intercept({ method: 'POST', url: /dataStatistics/ }).as(
'postDataStatistics'
)
cy.visit(
'/?id=ZBjCfSaLSqD&interpretationId=yKqhXZdeJ6a',
EXTENDED_TIMEOUT
) //ANC: LLITN coverage district and facility

cy.wait('@postDataStatistics')
.its('response.statusCode')
.should('eq', 201)

cy.getByDataTest('interpretation-modal')
.find('h1')
.contains(
'Viewing interpretation: ANC: LLITN coverage district and facility'
)
.should('be.visible')
})
})
25 changes: 20 additions & 5 deletions i18n/ar.po
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#
# Translators:
# phil_dhis2, 2021
# Philip Larsen Donnelly, 2021
# Hamza Assada <[email protected]>, 2022
# Viktor Varland <[email protected]>, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2023-04-12T09:23:26.646Z\n"
"POT-Creation-Date: 2023-09-06T13:08:55.205Z\n"
"PO-Revision-Date: 2019-06-25 18:35+0000\n"
"Last-Translator: Viktor Varland <[email protected]>, 2023\n"
"Language-Team: Arabic (https://app.transifex.com/hisp-uio/teams/100509/ar/)\n"
Expand All @@ -26,6 +26,15 @@ msgstr ""
msgid "Failed to save map: {{message}}"
msgstr ""

msgid "Calculation"
msgstr ""

msgid "No calculations found"
msgstr ""

msgid "Calculations can be created in the Data Visualizer app."
msgstr ""

msgid "Classification"
msgstr "تصنيف"

Expand Down Expand Up @@ -429,6 +438,9 @@ msgstr "عنصر بيانات الحدث مطلوب"
msgid "Program indicator is required"
msgstr "مؤشر البرنامج مطلوب"

msgid "Calculation is required"
msgstr ""

msgid "Period is required"
msgstr "الفترة مطلوبة"

Expand All @@ -444,6 +456,9 @@ msgstr "عناصر بيانات الحدث"
msgid "Program indicators"
msgstr "مؤشرات البرنامج"

msgid "Calculations"
msgstr ""

msgid "Item type"
msgstr "نوع العنصر"

Expand Down Expand Up @@ -509,9 +524,6 @@ msgstr ""
msgid "Indicator group"
msgstr "مجموعة المؤشرات"

msgid "Interpretations"
msgstr "التفسيرات"

msgid "Collapse"
msgstr "انهيار"

Expand Down Expand Up @@ -1273,6 +1285,9 @@ msgstr ""
msgid "You don't have access to this layer data"
msgstr "ليس لديك حق الوصول إلى بيانات الطبقة هذه"

msgid "The event filter is not supported"
msgstr ""

msgid "An unknown error occurred while reading layer data"
msgstr "حدث خطأ غير معروف أثناء قراءة بيانات الطبقة"

Expand Down
23 changes: 19 additions & 4 deletions i18n/ar_IQ.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2023-04-12T09:23:26.646Z\n"
"POT-Creation-Date: 2023-09-06T13:08:55.205Z\n"
"PO-Revision-Date: 2019-06-25 18:35+0000\n"
"Last-Translator: KRG HIS <[email protected]>, 2021\n"
"Language-Team: Arabic (Iraq) (https://app.transifex.com/hisp-uio/teams/100509/ar_IQ/)\n"
Expand All @@ -24,6 +24,15 @@ msgstr ""
msgid "Failed to save map: {{message}}"
msgstr ""

msgid "Calculation"
msgstr ""

msgid "No calculations found"
msgstr ""

msgid "Calculations can be created in the Data Visualizer app."
msgstr ""

msgid "Classification"
msgstr ""

Expand Down Expand Up @@ -426,6 +435,9 @@ msgstr ""
msgid "Program indicator is required"
msgstr ""

msgid "Calculation is required"
msgstr ""

msgid "Period is required"
msgstr ""

Expand All @@ -441,6 +453,9 @@ msgstr ""
msgid "Program indicators"
msgstr ""

msgid "Calculations"
msgstr ""

msgid "Item type"
msgstr ""

Expand Down Expand Up @@ -506,9 +521,6 @@ msgstr ""
msgid "Indicator group"
msgstr ""

msgid "Interpretations"
msgstr "التفسيرات"

msgid "Collapse"
msgstr ""

Expand Down Expand Up @@ -1260,6 +1272,9 @@ msgstr ""
msgid "You don't have access to this layer data"
msgstr ""

msgid "The event filter is not supported"
msgstr ""

msgid "An unknown error occurred while reading layer data"
msgstr ""

Expand Down
12 changes: 6 additions & 6 deletions i18n/cs.po
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#
#
# Translators:
# Jiří Podhorecký, 2023
#
#
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2023-04-12T09:23:26.646Z\n"
"POT-Creation-Date: 2023-09-06T13:08:55.205Z\n"
"PO-Revision-Date: 2019-06-25 18:35+0000\n"
"Last-Translator: Jiří Podhorecký, 2023\n"
"Language-Team: Czech (https://app.transifex.com/hisp-uio/teams/100509/cs/)\n"
Expand Down Expand Up @@ -516,9 +516,6 @@ msgstr "Styl podle sady skupiny"
msgid "Indicator group"
msgstr "Skupina indikátorů"

msgid "Interpretations"
msgstr "Interpretace"

msgid "Collapse"
msgstr "Sbalit"

Expand Down Expand Up @@ -1292,6 +1289,9 @@ msgstr "Chyba {{message}}"
msgid "You don't have access to this layer data"
msgstr "K datům této vrstvy nemáte přístup"

msgid "The event filter is not supported"
msgstr "Filtr událostí není podporován"

msgid "An unknown error occurred while reading layer data"
msgstr "Při čtení dat vrstvy došlo k neznámé chybě"

Expand Down
Loading

0 comments on commit 94e0283

Please sign in to comment.