-
Notifications
You must be signed in to change notification settings - Fork 1
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
NEWS FEED | As a user of the app I want to get all the relevant information and news regarding NOI. #20
Comments
Hi all The api call to get the news is: If we want to filter from now on and order by Startdate The startdate-enddate filter works this way We reused our Opendatahub Article Endpoint so there are a lot of not used fields: The fields for your interest are {
Id: "52402198-0C97-E378-8E63-E1A15FC121BA",
Self: "https://tourism.api.opendatahub.bz.it/v1/Article/52402198-0C97-E378-8E63-E1A15FC121BA",
Type: "newsfeednoi",
_Meta: {
Id: "52402198-0C97-E378-8E63-E1A15FC121BA",
Type: "article",
Source: "noi",
Reduced: false,
LastUpdate: "2022-03-15T10:48:40.5979606+00:00"
},
Active: false,
Detail: {
de: {
Title: "News Noi April",
BaseText: "<p>April April</p>",
AdditionalText: "additionaltext"
},
en: {
Title: "news noi april",
BaseText: "<p>april april</p><p><br/></p>",
AdditionalText: "additional text en"
},
it: {
Title: "news noi aprile",
BaseText: "<p>aprile aprile</p><p><br/></p>",
AdditionalText: "additional text it"
}
},
Source: "noi",
OdhActive: true,
LastChange: "2022-03-15T10:48:40.5979606+00:00",
ArticleDate: "2022-03-31T00:00:00",
ArticleDateTo: "9999-12-31T23:59:59.9999999",
FirstImport: "2022-03-15T10:48:40.598195+00:00",
HasLanguage: [
"de",
"it",
"en"
],
LicenseInfo: {
Author: "",
License: "CC0",
ClosedData: false,
LicenseHolder: "https://noi.bz.it"
},
ContactInfos: {
de: {
Url: "https://noi.bz.it",
Email: "community@noi.bz.it",
LogoUrl: "http://databrowser.opendatahub.bz.it/icons/NOI.png",
CompanyName: "NOI Techpark",
},
en: {
Url: "https://noi.bz.it",
Email: "community@noi.bz.it",
LogoUrl: "http://databrowser.opendatahub.bz.it/icons/NOI.png",
CompanyName: "NOI Techpark",
},
it: {
Url: "https://noi.bz.it",
Email: "community@noi.bz.it",
LogoUrl: "http://databrowser.opendatahub.bz.it/icons/NOI.png",
CompanyName: "NOI Techpark",
}
},
ImageGallery: [
{
ImageUrl: "https://tourism.images.opendatahub.bz.it/api/Image/GetImage?imageurl=64947f45-42ba-41aa-9b9d-47d9fa55ba71.png",
CopyRight: null,
ListPosition: 0,
}
]
} |
@sseppi please add the contactperson of Dimension for this issue currently i am the only one assigned |
Field mapping is the current a title (max 5-8 words) --> There are also |
Hi @RudiThoeni,
|
@MarE1991 how many news do we have to show in news page? In events page, we always show at most 20 events. Do we keep the same number? And how do we set |
@sseppi @MarE1991 For the label important we could use the field |
@chiaraDimension for the news section we didn't set a limit. Users should be able to find also old news when scrolling down. Is that possible or do you need a fixed maximum number? @RudiThoeni Can you anser the question on how to set the "startdate" parameter? thx |
As explained above i think i would set the startdate always to today's date? |
Yes, it is possible, but we have to paginate the results, for example loading 10 news items at a time. Could be fine? |
@chiaraDimension ok, got it. That should be fine. This means, 10 news are loading when I open the page and then I have the possibility to scroll down further or click on load more and the next 10 news appear, right? |
Exactly, scrolling down further the next 10 news appear (without load more button). Then we should only need this information in order to proceed with the implementation: #20 (comment) |
@chiaraDimension ok, perfect! @RudiThoeni fo 20 (comment) do you need any decision from me odr is it fine? |
Hi @RudiThoeni, Are these logos the same that will be use in production environment? Studiohug gave us the relative icons, but I think that we should load logos by urls that we obtain from API, isn't it? |
Hi chiara |
@MarE1991 could you please produce some fake news to use for testing? They should be a sufficient number to test incremental loading when scrolling down. Moreover there should be of different types: with long text/only abstract, with 0,1 or more images, with/without external link... |
@RudiThoeni is this confirmed?
? |
I confirm lets use this two fields... |
@chiaraDimension you find now some fake news in the back end to test it. Let me know if you need more or other ones. |
Thanks for these examples. It would be even better to have
|
@chiaraDimension finally I made it to insert more news. I tried to insert two with more images, but it didn't work out. Maybe @RudiThoeni can help us here. Is it not possible to load up more images. I remember that we said we would rarely need more pics, but it could be a thins with some news... THX |
@MarE1991 sorry never tested with 2 images, resolved works now to upload more images ;) |
Thanks, @RudiThoeni , now everything should be ready to be tested @chiaraDimension |
@MarE1991 are there some news flagged as important? |
i flagged two events as importand (CC9ED1C4-7ED4-99A8-638D-1BA3C38317BD, 505B62F2-353F-DF9D-99BF-97F9177B1377) |
@RudiThoeni I'd like to test deeply our pagination logic and performances. Is it possible to have about a hundred of "dummy" articles with different ids? Thank you! |
sorry @matax87 my daily cleanup script removed the generated news ;) i fixed and regenerated now you can test! |
@RudiThoeni
API call: Results: To obtain the news relative to API call: Results:
Example: Response: |
Hi Chiara point 3 is resolved. I had to recreate the the dummy objects to fix, maybe i resolved also some datetime filter issues because i saw there was a time set (probably the reason for 1) ...... for 1,2 i want to understand the date filter behaviour first.... i was not sure how to implement it..... Every news has a ArticleDate and an ArticleDateTo. For what i understood Marion wants to have a sort of News List with all "valid" news inside..... means The query on DB is so now when i filter |
As a member of the NOI-Community and user of the app, I want to get all the relevant information and news regarding NOI. This could be announcements about new rules, community initiatives, upcoming or past events, and more. I want to visualize pictures, links, and files and get a push notification if there is a piece of important news not to be missed out.
Each news is composed of:
The news should be displayed in chronological order, with the latest news on top.
All news pieces are published in German, Italian, and English – the single user sees the news in the language he chose on his device.
The text was updated successfully, but these errors were encountered: