Commit Graph

1836 Commits

Author SHA1 Message Date
Kai Zimmermann
59f218e841 Code cleanup (#427)
* Removed dead code.

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* Fix sonar issues.

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2017-01-30 11:10:46 +01:00
Jonathan Knoblauch
d553716cda Feature extend system management resource with custom data (#423)
* Added map to system management and mgmt resource to extend the the rest resource with custom data

Signed-off-by: Jonathan Philip Knoblauch <JonathanPhilip.Knoblauch@bosch-si.com>

* Lazy initialization of hash map and typo fix

Signed-off-by: Jonathan Philip Knoblauch <JonathanPhilip.Knoblauch@bosch-si.com>

* Renamed the map to usageData

Signed-off-by: Jonathan Philip Knoblauch <JonathanPhilip.Knoblauch@bosch-si.com>

* Adapted hashcode and equals and now returning empty map

Signed-off-by: Jonathan Philip Knoblauch <JonathanPhilip.Knoblauch@bosch-si.com>

* Reduced duplicated code

Signed-off-by: Jonathan Philip Knoblauch <JonathanPhilip.Knoblauch@bosch-si.com>

* Removed the if statement

Signed-off-by: Jonathan Philip Knoblauch <JonathanPhilip.Knoblauch@bosch-si.com>

* Added separated method for lazy initialization 

Signed-off-by: Jonathan Philip Knoblauch <JonathanPhilip.Knoblauch@bosch-si.com>
2017-01-27 16:42:25 +01:00
Dennis Melzer
a00ea49e47 Add target filter query feign client resource (#410)
* Add TagretFilter Query client resource

Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>

* Fix methode signature for feign

Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>
2017-01-26 15:01:42 +01:00
kaizimmerm
5514658f93 Renamed new script after merge.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2017-01-26 10:25:18 +01:00
Dennis Melzer
c82cc06682 Restructure the autoconfigure module (#408)
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>
2017-01-26 10:21:57 +01:00
Dominik Herbst
833b0795e3 Create Rollout UI with Groups definition (#369)
* Rollout creation UI with groups definition

Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com>

* Improved code quality

Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com>

* Added a legend to the Rollouts Creation UI's PieChart

Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com>

* Updated color palette for pie chart. Using RolloutGroupCreate for validation. Displaying pie chart for group editing.

Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com>

* Optimized ComboBoxBuilder

Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com>

* Removed not necessary RPC interfaces.

Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com>

* Fix Rollout verification count query. Improved UI style. Added dependency management for d3.

Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com>

* Auto start and scheduled start of Rollouts

Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com>

* Optimized RSQL Utility to avoid multiple joins on the same table.

Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com>

* Fixed RSQL Utility to avoid multiple joins on the same table to only work with OR nodes. Optimized validation queries for rollout group creation.

Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com>

* Asynchronous handling of groups validation in the create rollouts UI.

Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com>

* Added loading indicator to create rollout UI.

Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com>

* Avoid parallel validation for a user session.

Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com>

* Fix issues after merge of master into branch.

Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com>

* Improve code quality

Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com>

* Refreshing the total target count after validation on the rollouts creation UI.

Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com>

* Remove unused RolloutUpdate method. Optimization of the RolloutHelper.
Comments for RolloutGroupsValidation and RSQLUtility with explanation.

Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com>
2017-01-26 09:37:20 +01:00
Kai Zimmermann
430bf632cf Consistent content types produced and consistent links format in REST APIs. (#424)
* Consistent content types produced and consistent links format.

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* Standard order

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2017-01-21 09:00:22 +01:00
Kai Zimmermann
9d0a064912 Removed deprecated GridFS column from repository (#419)
* Merged artifact sha1 hash and gridfs column.

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* Renamed exception to get rid of old GridFS name.

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* Added test description.

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* Fix typo.

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2017-01-19 08:43:04 +01:00
Kai Zimmermann
c091342012 Fixed hash map size. (#422)
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2017-01-18 18:24:51 +01:00
Kai Zimmermann
80d11494b6 Added template variables for request driven URL calculation. (#416)
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2017-01-18 18:20:26 +01:00
Jonathan Knoblauch
59aba08666 Bug wrong count bulk upload dialog when runtime exception (#417)
* Fix for the bug by synchronizing the counts based on total target count

Signed-off-by: Jonathan Philip Knoblauch <JonathanPhilip.Knoblauch@bosch-si.com>

* Extended sync function with bulk progress bar set to 100% if runtime exception is thrown

Signed-off-by: Jonathan Philip Knoblauch <JonathanPhilip.Knoblauch@bosch-si.com>

* Changed method parameter to totalNumberOfLines

Signed-off-by: Jonathan Philip Knoblauch <JonathanPhilip.Knoblauch@bosch-si.com>

* Changed parameter type to long

Signed-off-by: Jonathan Philip Knoblauch <JonathanPhilip.Knoblauch@bosch-si.com>
2017-01-18 15:49:46 +01:00
Kai Zimmermann
8288904b1e DMF API supports target attributes update (#402)
* DMF attributes

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* Simluator sends attributes

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* Added sonar exception

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* Fix typos.

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* Generics for captor.

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2017-01-18 12:20:53 +01:00
Melanie Retter
63ab80ab7b System Config view only shows panel which logged in user has permission for (#418)
* Do not show distributionSetType on SystemConfig if user do not have any
repository permissions

Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>

* Log exception if occurs

Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>

* Use PermChecker for checking which panel to show

Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>

* Remove unused private field

Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>
2017-01-17 15:11:17 +01:00
Kai Zimmermann
1beb2875fa Upgrade to Spring Boot 1.4 (#415)
* Boot upgrade due to known security issues.

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2017-01-17 15:03:52 +01:00
Melanie Retter
ac85996eb6 The UI does not show "null" as a form value anymore. (#409)
* The UI does not show "null" as a form value anymore. Small code refactor

Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>

* TextArea style correction, "name" is mandatory if updating a target,
code refactor

Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>

* Insert constants for add/update target/distribution caption

Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>

* Correct JavaDoc, add trim to software module update

Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>

* Small code improvements

Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>
2017-01-12 15:24:14 +01:00
Kai Zimmermann
889d1492fb Repository API query signatures Entity free (#403)
* Migrated target management queries to IDs inetsead of full entities

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* Added missing comment.

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* refactored target,DS,cont,deploy,rg mangement.

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* Adde versioning documentation.

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* Rollout, Dist and Software mgmt refactored

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* Readded line that was remove by incident. 

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* Fixed broken tests.

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* Query management refactored

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* Fix bug of auto assign DS delete

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* Switch to collection

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* Fixed compile error

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* Small glitches

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* Fixed test after merge

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2017-01-11 14:32:55 +01:00
Jonathan Knoblauch
824ef2982f Posted feedback without "result" cause NPE in DDI API (#399)
* Fix for the bug by using @Valid on member variables

- add junit test
- done some refactoring

Signed-off-by: Jonathan Philip Knoblauch <JonathanPhilip.Knoblauch@bosch-si.com>

* Refactoring of junit tests

Signed-off-by: Jonathan Philip Knoblauch <JonathanPhilip.Knoblauch@bosch-si.com>
2017-01-11 11:23:48 +01:00
Melanie Retter
5707e5908a Grid inside RolloutView now has a horizontal scrollbar (#404)
* Insert placeholder for customizing the space between the last action
button and the right border of the rollout table

Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>

* Insert horizontal scrollbar, widen space between
action buttons

Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>
2017-01-11 11:08:55 +01:00
kaizimmerm
a9c337af6a Add test for target attributes update
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2017-01-09 09:40:01 +01:00
Melanie Retter
113e528616 Event notification window closes if focus is lost
Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>
2017-01-09 08:45:56 +01:00
Kai Zimmermann
feb3369858 Custom Tenant configuration. (#395)
* Tenant configuration configurable.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2016-12-23 07:19:46 +01:00
Dennis Melzer
4d35413f71 Add missing field and checkbox id (#401)
* Add missing field and checkbox id
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>
2016-12-22 12:53:13 +01:00
Melanie Retter
6aaade8698 Change HorizontalLayout of HawkbitUI to Panel and beautify Panel (#400)
Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>
2016-12-22 09:36:26 +01:00
Michael Hirsch
9e28fcfbb9 add cache condition to prevent null cache value of tenant (#398)
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com>
2016-12-22 09:30:48 +01:00
Kai Zimmermann
eb9fd0fea7 Fix DMF update cancel message (#397)
* Fix bug where DMF sends cancel for DDI targets.

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* Fix nullpointer when event consumer access target info.

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2016-12-22 09:29:07 +01:00
Dennis Melzer
e6f702c882 Feature configure delay time out (#391)
* Create a new property (hawkbit.server.ui.event.push.delay),that the
event delay forwarding is configurable.

Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>

* Add javadoc

Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>

* Change delay to a long

Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>
2016-12-20 11:18:26 +01:00
Michael Hirsch
55a21d2633 remove getEntity call on event (#396)
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com>
2016-12-19 16:33:09 +01:00
Melanie Retter
2dec35915c New event strategy (#380)
* Add notfication overview for remote events

Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>

* Refactor css for notification button

Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>

* Remove todo

Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>

* - Style notfication button (css) 
- Add i18n message keys
- Add switch slider for auto refresh event

Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>

* Insert Label in MenuItem for displaying occurred events

Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>

* - Style notfication button (css) 
- Add i18n message keys
- Add switch slider for auto refresh event
- Insert Label in MenuItem for displaying occurred events

Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>

* Solve merge conflicts and add menu item counter

Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>

* CSS refactor

Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>

* Adapt JUnit test for events, because constructor is changed

Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>

* Skip delete event

Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>

* - Insert Id for notification menu

- Enable push mechanism for target and ds tag and add notfications

- Fix several typos

Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>

* Add update ui events for tags and add different id's for menue item

Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>

* Insert push for SoftwareModule

Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>

* Set button enablement

Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>

* Add Software module update push event
Add unit test software module push events
Adapt test for software push event

Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>

* Close window and set pop id
Update the target table to set the new icon

Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>

* - several code improvements
- Correct license header

Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>

* Update vaadin version
Rename the base entity and redefine constructors
unread counter was not correct

Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>

* Closebox of notificationButton is invisible: 
Insert height for HorizontalLayout of NotificationUnreadButton

Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>

* Add software modules to the new event types

Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>

* Introduce animation in unreadNotificationButton

Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>

* Fix close  on safari

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>

* Add publish events direct to the tag entities.


Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>
2016-12-19 16:05:23 +01:00
Dominic Schabel
ccc23bf634 Enable secure connections via 'spring.rabbitmq.ssl.enabled' will be considered now (#394)
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
2016-12-19 11:48:26 +01:00
Kai Zimmermann
92dd6a1a0e Modular hawkBit (#378)
* Cleaned up component scan
* More flexibility for hawkBit micro services
* Introduce spring boot starters
* Eclipse Jetty as hawkBit default
* Fixed links as prep for wiki removal

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2016-12-13 12:29:21 +01:00
Michael Hirsch
63adbd0298 encode class type information in message payload instead of header (#383)
* encode class type information in message payload instead of header
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com>
2016-12-09 14:44:13 +01:00
Michael Hirsch
7a7e52de47 call getEntity only on visible item (#387)
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com>
2016-12-09 14:42:50 +01:00
Kai Zimmermann
0ddcedad74 Introduce optional throttled DMF requeuing (#373)
* Inroduce throttled requeuing
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2016-12-09 14:42:33 +01:00
Kai Zimmermann
f0fc8f0606 Added mising update of DS property. (#382)
* Added mising update of DS property. Updated sonar plugin and make sure
that test code is not covered by sonar
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2016-12-09 14:42:04 +01:00
Michael Hirsch
edbadc4002 Feature s3 repository extension (#366)
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com>
2016-12-07 09:52:43 +01:00
Marcel Mager
11fa4469dd Replace server-side dnd validation with client-side validation: (#368)
* Replace server-side dnd validation with client-side validation:

Client-side validation means:
* Custom widgetset is used to introduce the client-side validation
* Accept-calculation is performed on client-side
* Drop-hints are calculated on client-side (show/hide)
* Row count decoration is calculated on client-side (multi-selection)
* Notification box is triggered from client-side

Beside the migration from server-side validation to client-side
validation there are few improvements:
* Improvement1: If drag is aborted outside the components by releasing
the mouse or the drag aborts by pressing the ESC key) -> drop area hints
are removed
* Improvement2: If multiple rows are selected in table, but drag is
performed on a non-selected single element from table -> the single
drag-element is not decorated with the row selection count
* Improvement3: Upload View: Component 'Drop files to upload' only
accepts files (and no drags from filter and software module component)

Signed-off-by: Marcel Mager (INST-IOT/ESB) <Marcel.Mager@bosch-si.com>

* Improve code quality

Signed-off-by: Marcel Mager (INST-IOT/ESB) <Marcel.Mager@bosch-si.com>

* Fix formatting of license headers

Signed-off-by: Marcel Mager (INST-IOT/ESB) <Marcel.Mager@bosch-si.com>

* Fix scopes and modifiers

Signed-off-by: Marcel Mager (INST-IOT/ESB) <Marcel.Mager@bosch-si.com>

* Externalize key-strings used for dnd-data transfer from server to client

Minor issues:
* improve naming schema of control variables (no more i-s)
* add final modifier

Signed-off-by: Marcel Mager (INST-IOT/ESB) <Marcel.Mager@bosch-si.com>

* Add license header

Signed-off-by: Marcel Mager (INST-IOT/ESB) <Marcel.Mager@bosch-si.com>
2016-12-06 19:56:10 +01:00
Michael Hirsch
8e7943dc4f use platform independent file move (#376)
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com>
2016-12-06 19:34:59 +01:00
Kai Zimmermann
d15084974a Feature mgmt simulator semi aware (#377)
* Mgmt simulator is Semic automatic rollout aware

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2016-12-06 19:33:53 +01:00
Dominik Herbst
173f782af8 Search string in target table searches now also for the controller id
Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com>
2016-12-05 12:58:20 +01:00
Kai Zimmermann
b2fa30e7b5 Merge pull request #367 from bsinno/fix_ui_performance
Fix UI login and view change performance
2016-12-01 17:15:57 +01:00
Michael Hirsch
a3a1f036ca add NPE check on item in DistributionSetTable
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com>
2016-11-30 10:34:09 +01:00
kaizimmerm
5a74f6bf51 Merge branch 'fix_ui_performance' of https://github.com/bsinno/hawkbit.git into fix_ui_performance 2016-11-30 08:37:46 +01:00
kaizimmerm
94dc7bab45 Merged with master
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2016-11-30 08:37:35 +01:00
Michael Hirsch
ce70f8f960 fix relative paths of css and images in docs (#358)
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com>
2016-11-30 07:15:44 +01:00
kaizimmerm
99c6e6ff1f Fixed edit DS bug
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2016-11-29 16:30:37 +01:00
kaizimmerm
8d9f2d7dfa Fixed sonar issues
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2016-11-29 15:42:45 +01:00
kaizimmerm
0138a7abb9 Remoce further usage of the helper
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2016-11-29 15:23:58 +01:00
kaizimmerm
20934d5d93 Removed usage of spring context helper
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2016-11-29 15:09:20 +01:00
kaizimmerm
b689a6ae9a Removed usage of spring context helper
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2016-11-29 15:09:01 +01:00
kaizimmerm
aaac045501 Fixed final sonar issues.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
2016-11-29 12:10:10 +01:00