Skip to content

feat(backend): New Backend and authentication for Phonebook data.#7

Merged
paule96 merged 61 commits intomasterfrom
use_EF_for_oracle_DB
Apr 7, 2020
Merged

feat(backend): New Backend and authentication for Phonebook data.#7
paule96 merged 61 commits intomasterfrom
use_EF_for_oracle_DB

Conversation

@paule96
Copy link
Collaborator

@paule96 paule96 commented Apr 5, 2019

The following are the changes, most of them are breaking changes:

  • replace the json file with a real backend
    • the backend connects directly to a database
    • currently, it try to return the same stuff as the old JSON file
  • Open Source the backend
  • add authentification to the people data
    • currently, supported is WsFederation over Azure or ADFS (and tested)

There are some issues that currently are known:

  • the search for numbers is broken
  • the last hierarchy in the org structure isn't visible in any view
    • organigram
    • users supervisor
    • Users organigram information
  • after login the user is redirected to / and not to the path the redirection starts. (New Backend: user authenitcation flow #586 )
  • the picture backend asked for login
    • this will change soon because we plan to use the same auth like this backend.

But we must ship this because the old source is broken. (after more than 15 years!)
So let's

ship it gif

BREAKING CHANGE
closes #18
closes #271

paule96 added 2 commits April 5, 2019 02:15
- warning: we are now officell unstable because the oracle dependencie is beta...
@paule96 paule96 added the feature An enhancement or a new functionality feature. label Apr 5, 2019
@paule96 paule96 requested a review from DanielHabenicht April 5, 2019 00:21
@paule96
Copy link
Collaborator Author

paule96 commented Apr 5, 2019

This pr is blocked by a missing build infrastructure! I add this later. @DanielHabenicht we must do some internal discussions about this...

DanielHabenicht
DanielHabenicht previously approved these changes Apr 5, 2019
Copy link
Collaborator

@DanielHabenicht DanielHabenicht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from my comment it looks good! But we can add swashbuckle later if you want.

@paule96 paule96 added this to the New backend for Phonebook milestone Jun 23, 2019
@paule96
Copy link
Collaborator Author

paule96 commented Jun 23, 2019

Good news @DanielHabenicht : This PR will continue on Monday :)

- improve performance
- beginn removing cycle refs
- enabled query errors if client evaluation is need
- endable usersecrets
@paule96
Copy link
Collaborator Author

paule96 commented Oct 2, 2019

think about query caching with:

https://github.com/VahidN/EFSecondLevelCache.Core
or this:

https://github.com/SteffenMangold/EntityFrameworkCore.Cacheable/

things that are also todo is to add maybe OData or something like this to allow querying data.

@DanielHabenicht
Copy link
Collaborator

I think just provide the bare minimum for the first PR. Querying Data is for a later version as we already discussed.

@paule96
Copy link
Collaborator Author

paule96 commented Oct 7, 2019

Okay, @DanielHabenicht and @mschwrdtnr, I have e-mailed you the current JSON result of the API, so you can check if you missing something. The result for a dataset of 2000 employees has a response time of 500ms. If this is to slow I must find a way to cache it.

@Zeroks77
Copy link
Collaborator

Zeroks77 commented Nov 28, 2019

@DanielHabenicht
Copy link
Collaborator

@paule96
Copy link
Collaborator Author

paule96 commented Dec 3, 2019

https://stackoverflow.com/questions/807878/how-to-make-javascript-execute-after-page-load/36096571#36096571

Whats that?

That is maybe the solution for the out problem. But I'm not shure.

So the idea is to open a new tab or window for the login. If the phonebook is the parent window we can watch in the DOM of this site. And maybe we are able to create an event that is triggered if the login is sucess. But my current plan is an other plan. Maybe we redirect the user always to the login. That is a breaking change to the current phonebook, because currently you can use some features without login. After this you can't. So I think I start with the easy one. So we can start finishing this PR.

@paule96 paule96 mentioned this pull request Dec 4, 2019
3 tasks
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mmsgithub-ci
Copy link
Collaborator

Preview Environment ready at https://pr-7.demo-phonebook.me

@paule96
Copy link
Collaborator Author

paule96 commented Apr 6, 2020

/azp run T-Systems-MMS.phonebook-preview

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@paule96
Copy link
Collaborator Author

paule96 commented Apr 6, 2020

/azp run T-Systems-MMS.phonebook-preview

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@paule96
Copy link
Collaborator Author

paule96 commented Apr 6, 2020

/azp run T-Systems-MMS.phonebook-preview

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mmsgithub-ci
Copy link
Collaborator

Preview Environment ready at https://pr-7.demo-phonebook.me

@paule96
Copy link
Collaborator Author

paule96 commented Apr 6, 2020

/azp run T-Systems-MMS.phonebook-preview

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mmsgithub-ci
Copy link
Collaborator

Preview Environment ready at https://pr-7.demo-phonebook.me

@mmsgithub-ci
Copy link
Collaborator

Preview Environment ready at https://pr-7.demo-phonebook.me

@mmsgithub-ci
Copy link
Collaborator

Preview Environment ready at https://pr-7.demo-phonebook.me

@paule96
Copy link
Collaborator Author

paule96 commented Apr 7, 2020

@T-Systems-MMS/phonebook-developers please look at this. I will merge this at 7pm. If you find any issues that is your last chance ;)

@DanielHabenicht
Copy link
Collaborator

ship it gif

@paule96
Copy link
Collaborator Author

paule96 commented Apr 7, 2020

Can we hack img tags in the Release Notes message? :D I wan't clippy in the release notes :D

@paule96 paule96 changed the title First real connection to the Datasource for our human data feat(backend) New Backend and authentication for Phonebook data. Apr 7, 2020
@DanielHabenicht
Copy link
Collaborator

Please add before the "closes" the literal "BREAKING CHANGE" otherwise it won't get picked up by semantic release.

@paule96 paule96 changed the title feat(backend) New Backend and authentication for Phonebook data. feat(backend): New Backend and authentication for Phonebook data. Apr 7, 2020
@paule96 paule96 merged commit bdbc898 into master Apr 7, 2020
@paule96 paule96 deleted the use_EF_for_oracle_DB branch April 7, 2020 17:05
@mmsgithub-ci
Copy link
Collaborator

🎉 This PR is included in version 1.40.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature An enhancement or a new functionality feature. released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Basic Auth Add build for Phonebook.Source.PeopleSoft

4 participants