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

FIWARE datatarget #67

Merged
merged 8 commits into from
Feb 17, 2022
Merged

FIWARE datatarget #67

merged 8 commits into from
Feb 17, 2022

Conversation

bkd231
Copy link
Contributor

@bkd231 bkd231 commented Feb 15, 2022

This PR extends the administration of datatarget with:

  • New 'marketplace' like component dataterget type selection when creating a new datatarget
  • New components for handling FIWARE datatarget
  • Some refactor to simplify adding new datatarget types

Those changes require an updated backend. The PR to the backend repository: OS2iot/OS2iot-backend#141

Copy link
Contributor

@GufCab GufCab left a comment

Choose a reason for hiding this comment

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

Fundamentally it works with some minor issues.
I noted a number of formatting issues explicitly - however, could you run a linter with the setings in tslint.json on your changes and fix the issues?


viewContainerRef.clear();
const factory = this.componentFactoryResolver.resolveComponentFactory(componentType);
const componentRef = viewContainerRef.createComponent<DatatargetDetail>(factory)
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing Semicolon (and unused componentref)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

type: DataTargetType.FIWARE,
icon: "/assets/images/logo_FIWARE.png",
description: "En integration til FIWARE Context Broker" ,
readMoreUrl: "https://www.kmd.dk",
Copy link
Contributor

Choose a reason for hiding this comment

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

Your choice, but consider adding a more specific read-more link :)

@bkd231
Copy link
Contributor Author

bkd231 commented Feb 16, 2022

We have resolved most of the comments and run the linter on the new code as requested. The readMoreUrl comment is still pending

@GufCab GufCab merged commit f31a6f3 into OS2iot:stage Feb 17, 2022
GufCab added a commit that referenced this pull request Feb 23, 2022
* Added message to prompt when attempting to delete application with SigFox device

* Added message and functionality to check and to prompt when attempting to delete application with SigFox device

* Made the first additions to multicast in frontend. Will try to connect to backend next.

* Minor changes to make it work with backend.

* PR Changes. Also made the check for sigfox devices in detail page, which i missed before.

* Minor changes so detail page will show how updated/created the multicast

* PR Changes + formatting

* Moved two buttons, multicast and datatargets, to a tab bar in application details.

* minor typo fix

* Finalized CRUD in frontend. Removed list maps from datatarget and multicast because of change in requirements - now the multicast and datatarget is in a tab bar in the application detail page.

* Init api key menu item

* changed division in db so the frontend will receive a different promise. Mostly just changed property names because of this change.

* First additions to "add device to multicast". A dropdown is made with all the possible sensors for the application, and the chosen ones is sent to backend.

* Made frontend functionality so you can add devices to a multicast when you update or create. These devices is then shown in detail page.

* made snack for fail to load on multicast edit page

* Show api keys

* removed 2 console logs

* Api key management works

* Cleanup after api key

* Message to multicast. Made the form and service operations to send to backend, which will then handle the request to chirpstack

* Changed details page. Not splitted up in basic details, and lorawan details.

* PR changes plus search function for devices in multicast

* PR changes - fixed pagination for multicast

* Minor snack changes and check if devices is included before sending downlink

* PR Changes

* merge conflicting

* Cleanup

* Remove unique permissions pipe

* API key cleanup

* Fix sigfox group id

* Add edit api key

* Edit API key PR

* Spell organization with "z"

* Multicast text description changes

* Fixed deleted word "adressen" in multicast creation. Is added again.

* Moved hint description under the input form instead of before det input form. Matches the design of the rest of the document.

* FIWARE datatarget (#67)

* Datatarget multi-types administration and new FIWARE Datatarget type

* PR fixes

* DatatargetTypesService pr fixes

* Optimize bulk import and the load on chirpstack (#65)

* Batch bulk import create. Update missing

* Reworked update many and cleanup

* Comment on bulk import

* Added device model error codes

Co-authored-by: nlg <[email protected]>

Co-authored-by: August Andersen <[email protected]>
Co-authored-by: Aram Al-Sabti <[email protected]>
Co-authored-by: augusthjerrild <[email protected]>
Co-authored-by: AramAlsabti <[email protected]>
Co-authored-by: Bartek <[email protected]>
Co-authored-by: nlg <[email protected]>
@bkd231 bkd231 deleted the fiware-data-target-stage branch May 31, 2022 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants