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

Issues/KUI-1643: remove analyses from statistics page #406

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 0 additions & 2 deletions config/commonSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const devSsl = false
const devPrefixPath = devDefaults('/student/kurser/kurs')
const devImageStorageUri = 'https://kursinfostoragestage.blob.core.windows.net/kursinfo-image-container/'
const devMemoStorageUri = 'https://kursinfostoragestage.blob.core.windows.net/memo-blob-container/'
const devAnalysisStorageUri = 'https://kursinfostoragestage.blob.core.windows.net/kursutveckling-blob-container/'

module.exports = {
hostUrl: getEnv('SERVER_HOST_URL', devUrl),
Expand All @@ -27,5 +26,4 @@ module.exports = {
},
imageStorageUri: getEnv('IMAGE_STORAGE_URI', devImageStorageUri),
memoStorageUri: getEnv('MEMO_STORAGE_URI', devMemoStorageUri),
analysisStorageUri: getEnv('ANALYSES_STORAGE_URL', devAnalysisStorageUri),
}
17 changes: 0 additions & 17 deletions i18n/messages.en.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,14 +289,11 @@ module.exports = {
allSchools: 'All schools',
chartsLabels: {
headerMemo: 'Percentage of courses that have published course memos',
headerAnalysis: 'Percentage of courses (ending the chosen semester) that have a published course analysis',
headerYearAgo: 'Compare with the result for the selected study period from the previous year',
numberOfUniqAnalyses: 'During the semester (s)',
numberOfUniqWebAndPdfMemos: 'Under study period(s)',
numberOfMemosPublishedBeforeStart: 'Before course start',
numberOfMemosPublishedBeforeDeadline: 'One week before course start',
},
courseAnalysis: 'Course analysis',
courseMemo: 'Course memo',
btnShowResults: 'Show statistics',
errorUnknown: { text: 'An unknown error occurred - failed to retrieve course data.' },
Expand Down Expand Up @@ -337,12 +334,6 @@ module.exports = {
1: 'Spring',
2: 'Autumn',
},
courseAnalysis: {
header: 'Table of courses and course analyses',
details:
'Here it is possible to see a table with data for all course offerings for the selected school and semester. It is possible to sort the information in the table columns. It is also possible to download the table as an Excel or CSV file to do your own filtering and sorting of the data.',
sourceOfData: 'See table with data for course analysis',
},
courseMemo: {
header: 'Table of courses and course memos',
details:
Expand All @@ -367,14 +358,12 @@ module.exports = {
linkToCoursePM: 'Link to course memo',
term: 'Semester',
courseEndDate: 'Offering end date',
linkToCourseAnalysis: 'Link to course analysis',
},
},
summaryLabels: {
sourceOfData: 'Read about the API:s and the source of data',
subHeaders: {
courseMemo: 'Compilation of the number of published course memos',
courseAnalysis: 'Compilation of the number of published course analyses',
},
memosNumbersTable: {
school: 'School',
Expand All @@ -385,12 +374,6 @@ module.exports = {
totalMemosPublishedBeforeCourseStart: 'Memos published latest at course start',
totalMemosPublishedBeforeDeadline: 'Memos published one week before course start',
},
analysesNumbersTable: {
school: 'School',
totalCourses: 'Number of courses ending the chosen semesters',
totalUniqPublishedAnalyses:
'Number of published course analyses for course offerings ending the chosen semester',
},
},
earlierYearThan2019: { text: 'There is no data earlier than 2019' },
},
Expand Down
16 changes: 0 additions & 16 deletions i18n/messages.se.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,11 @@ module.exports = {
allSchools: 'Alla skolor',
chartsLabels: {
headerMemo: 'Andel kurser som har publicerade kurs-PM ',
headerAnalysis: 'Andel kurser (som slutar vald termin) som har en publicerad kursanalys',
headerYearAgo: 'Jämför med resultatet för vald läsperiod från föregående år',
numberOfUniqAnalyses: 'Under terminen',
numberOfUniqWebAndPdfMemos: 'Under läsperiod/erna',
numberOfMemosPublishedBeforeStart: 'Senast vid kursstart',
numberOfMemosPublishedBeforeDeadline: 'En vecka före kursstart',
},
courseAnalysis: 'Kursanalys',
courseMemo: 'Kurs-PM',
btnShowResults: 'Visa statistik',
errorUnknown: { text: 'Ett okänt fel inträffade - misslyckad hämtning av kursdata.' },
Expand Down Expand Up @@ -312,12 +309,6 @@ module.exports = {
1: 'VT',
2: 'HT',
},
courseAnalysis: {
header: 'Tabell med kurser och kursanalyser',
details:
'Här finns möjlighet att se en tabell med data för alla kurstillfällen, för vald skola och läsperiod. Det går att sortera informationen i tabellens kolumner. Det är även möjligt att ladda ner tabellen som en Excel- eller CSV-fil för att göra egna filtreringar och sorteringar av datan.',
sourceOfData: 'Se tabell med data för kursanalys',
},
courseMemo: {
header: 'Tabell med kurser och kurs-PM',
details:
Expand All @@ -342,14 +333,12 @@ module.exports = {
linkToCoursePM: 'Länk till kurs-PM',
term: 'Termin',
courseEndDate: 'Kursens slutdatum',
linkToCourseAnalysis: 'Länk till kursanalys',
},
},
summaryLabels: {
sourceOfData: 'Läs om API:erna och källkoden',
subHeaders: {
courseMemo: 'Sammanställning av antalet publicerade kurs-PM',
courseAnalysis: 'Sammanställning av antal publicerade kursanalyser',
},
memosNumbersTable: {
school: 'Skola',
Expand All @@ -360,11 +349,6 @@ module.exports = {
totalMemosPublishedBeforeCourseStart: 'Kurs-PM publicerade senast vid kursstart',
totalMemosPublishedBeforeDeadline: 'Kurs-PM publicerade en vecka före kursstart',
},
analysesNumbersTable: {
school: 'School',
totalCourses: 'Antal kurser som slutar vald termin',
totalUniqPublishedAnalyses: 'Antal publicerade kursanalyser för kursomgångar som slutar vald termin',
},
},
earlierYearThan2019: { text: 'Det finns inga data tidigare än 2019' },
},
Expand Down
137 changes: 0 additions & 137 deletions public/js/app/components/statistics/AnalysesSummary.jsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { summaryTexts } from './StatisticsTexts'

import { DOCS, documentTypes } from './domain/formConfigurations'
import { schools } from './domain/index'
import { AnalysesSummary, MemosSummary } from './index'
import { MemosSummary } from './index'

function ResultNumbersSummary({ statisticsResult }) {
const { documentType, koppsApiBasePath } = statisticsResult
Expand All @@ -34,11 +34,7 @@ function ResultNumbersSummary({ statisticsResult }) {
</details>
</article>
<article key="documents-and-courses-compilation">
{documentType === DOCS.courseMemo ? (
<MemosSummary statisticsResult={statisticsResult} />
) : (
<AnalysesSummary statisticsResult={statisticsResult} />
)}
{documentType === DOCS.courseMemo ? <MemosSummary statisticsResult={statisticsResult} /> : null}
</article>
</>
)
Expand Down
Loading
Loading