-
Notifications
You must be signed in to change notification settings - Fork 0
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
As MaaS Operator, I would like to have a secure end-point from which I can retrieve anonymous user codes #41
Comments
@clezag @luhodaan the API should simply retrieve as JSON a list of objects, each object should contain three fields:
codiceUtente is a field given in the Excel file linked above, while idViaggiatore and tipoViaggiatore are something to be calculated based on the answers given by a user to the form, and available in the Excel file. I will provide you tomorrow the exact way we have to calculate these two codes, with an example. In the meantime you can start trying to read the content of the Excel file (see link above in the user story description) |
@clezag @luhodaan now if you see online link below you can find the exact way these codes (idViaggiatore and tipoViaggiatore) have to be computed. You can find some example so that you can understand better. In the attached specification you can find the exact rules for the generation of the code tipoViaggiatore. |
@rcavaliere From the STA CSV file I am using locally to test the api, I see already present the 2 fields that should be instead computed as understood from the above comments. I refer to:
Also as soon as anything comes out about the authentication methods for the STA sharepoint, I'll move from the local csv to the actual data. |
@luhodaan good, but I would ask you to compute these two codes as implemented in the Excel file, by considering the formulas that you can see implemented there. I can provide you some additional explanations by voice if needed |
@rcavaliere the api is now in production. At the moment it is taking the data from the csv copy you sent me. So the only thing left should be getting the data from source instead when the sharepoint wil be accessible. |
@luhodaan. Wonderful. Can you please share me the link here? |
@rcavaliere https://maas4italy-users.api.opendatahub.testingmachine.eu/users there is also an endpoint to filter results from the known Codice utente: |
@luhodaan in the repository there is a folder in which you actually read the CSV file, right? Can you put me the link here (of the repository and where the file is placed)? |
@rcavaliere https://github.com/noi-techpark/maas4italy-pilot-user-api/tree/main. |
@luhodaan it would be good to have the CSV file in the repo. Maybe let's make the repo closed and not of public domain, so that we only as team can have access to the file |
@luhodaan I have spoken with STA about the access to the Excel file. There is no way to do differently, you should access via this link: https://stabz.sharepoint.com/:x:/g/InfoSys/ProjekteIS/P005200/EfpsnAgHWndCmmq--7kNcUsBhCWUw3FRvdxpYdM9khmlLw?e=eQkJfl Your email address (and also of @clezag) are now enabled to access the file. In the meantime, in order to not block the activities because of this automatic interface with the online Excel, I would recommend to the following:
So, it is not fully automatic but e.g. we can update the file once a day. Can you please complete this by the end of the week please? In the meantime I put here an updated version of the CSV, can you let the end-point be available with all these records please? |
@rcavaliere I have updated this morning the logic to fetch the data. Now each time that a new I'll further look how to move in the direction of substituting this mechanism with the online Excel access. |
@luhodaan perfect, thanks! Where should we put the CSV exactly? |
@rcavaliere the CSV has to be put in the outer level of the repo, just like the README or the gitignore, you can also see it in the current organisation of the repo: https://github.com/noi-techpark/maas4italy-pilot-user-api/tree/prod. You're right, i fixed both idViaggiatore and tipoViaggiatore, which weren't consistent in how they were computed. |
@luhodaan I have tried to update the CSV file since we are starting to have now many users registering to the pilot project. However I can not see an update in the API, can you check? I have also seen that the last two codes associated to Markas are not correctly generated (see records #14 and #15). One last thing: in one of the new answers a person has selected as answer for question AA the reply '2' (which stands for "I don't want to reply"). Please ensure in this case that last digit in this case is zero, since we have always to guarantee that the code TipoViaggiatore has exactly 25 digits. |
@rcavaliere The file has to be updated on branch prod to see the updates in production. If it is updated on main, which is for test, the change is visible here: https://maas4italy-users.api.opendatahub.testingmachine.eu/users I'll take care of the padding for codes shorter than 25 digits, adding zeros to match the length. |
@luhodaan thanks! Yes please also fix the ITH10_ aspect! |
@rcavaliere now it is fixed. I also noticed a problem with how the csv read the accented characters in the header, which was a problem for fetching correctly the data, but now it should be good. |
@luhodaan I have a new request for you. We need to integrate a second CSV file (attached here), which is equal to the other one. The form with which we collect this data from the users needed to be different since in this case the users have to enter slightly different values. Can you please consider also this entry file and make sure that our end-point also provides the codes associated to the users registered also in this way? |
@rcavaliere I've added the logic to fetch the data from both files. Now the api will show the users from both. |
@rcavaliere I understand that this method that involves updating the CSV on the repo can be from time to time inconvenient. If you think the API will be alive for a prolonged period of time, we can consider having it fetch data directly from SharePoint somehow. I've been told there's a consultant who's quite experienced with SharePoint and Microsoft products authentication in general, I could try and reach out to him if needed. |
@luhodaan maybe it could be interesting to analyze this feature more in detail, so try to involve him! Anyway, I think that with the manual upload of the codes could also work, but please check this possibility, so that we can fully automate the workflow |
In short time MaaS Operators will be able to offer MaaS services to local users thanks mainly to the Open Data Hub.
The project provides incentives to users testing such APPs. For being part of the project, selected users of selected companies will have to register thanks to a Microsoft Form managed by STA. Thanks to the answers obtained, users' identifiers can be generated - these are necessary for the interface between the MaaS operator back-end and the national MaaS platform, where for statistical / research reasons the users' trip patterns are stored. Everything is GDPR-compliant! The user inserts a user code which is securely provided by the mobility manager of the company.
The MaaS Operator would need to have instead of a CSV / Excel file an API with just the relevant data needed. So the user story would be:
No data storage is needed in the Open Data Hub; in this case we can directly publish this data.
Possibly within October 4th.
The text was updated successfully, but these errors were encountered: