Skip to content
This repository has been archived by the owner on Jan 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #105 from zalando-nakadi/ARUHA-2876
Browse files Browse the repository at this point in the history
Removing code related to showing publisher tab
  • Loading branch information
thomasabraham authored May 11, 2020
2 parents cff6dc8 + d8b5e0c commit de3c815
Show file tree
Hide file tree
Showing 12 changed files with 1,591 additions and 2,164 deletions.
12 changes: 1 addition & 11 deletions client/Pages/EventTypeDetails/Help.elm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Pages.EventTypeDetails.Help exposing (audience, authorization, category, cleanupPolicy, cleanupPolicyCompact, compatibilityMode, consumers, consumingQueries, createdAt, defaultStatistic, enrichmentStrategies, envelope, eventOwnerSelector, eventType, options, orderingKeyFields, owningApplication, partitionCompactionKeyField, partitionKeyFields, partitionStrategy, partitions, publishers, schema, subscription, updatedAt)
module Pages.EventTypeDetails.Help exposing (audience, authorization, category, cleanupPolicy, cleanupPolicyCompact, compatibilityMode, consumers, consumingQueries, createdAt, defaultStatistic, enrichmentStrategies, envelope, eventOwnerSelector, eventType, options, orderingKeyFields, owningApplication, partitionCompactionKeyField, partitionKeyFields, partitionStrategy, partitions, schema, subscription, updatedAt)

import Config exposing (appPreffix)
import Helpers.UI exposing (..)
Expand Down Expand Up @@ -344,16 +344,6 @@ partitions =
]


publishers : List (Html msg)
publishers =
[ text "The list of publishers to this Event Type."
, newline
, text "This list contains only publishers who posted events in the last four days."
, newline
, man "#using_producing-events"
]


consumingQueries : List (Html msg)
consumingQueries =
[ text "The list of nakadi-sql queries consuming this Event Type." ]
Expand Down
3 changes: 0 additions & 3 deletions client/Pages/EventTypeDetails/Messages.elm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import Stores.CursorDistance
import Stores.EventTypeSchema
import Stores.EventTypeValidation
import Stores.Partition
import Stores.Publisher
import Stores.Query


Expand All @@ -27,8 +26,6 @@ type Msg
| TabChange Tabs
| SchemaVersionChange String
| JsonEditorMsg Helpers.JsonEditor.Msg
| LoadPublishers
| PublishersStoreMsg Stores.Publisher.Msg
| LoadConsumingQueries
| ConsumingQueriesStoreMsg Stores.ConsumingQuery.Msg
| LoadConsumers
Expand Down
3 changes: 0 additions & 3 deletions client/Pages/EventTypeDetails/Models.elm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import Stores.CursorDistance
import Stores.EventTypeSchema
import Stores.EventTypeValidation
import Stores.Partition
import Stores.Publisher
import Stores.Query exposing (Query)


Expand All @@ -25,7 +24,6 @@ initialModel =
, name = emptyString
, version = Nothing
, jsonEditor = JsonEditor.initialModel
, publishersStore = Stores.Publisher.initialModel
, consumingQueriesStore = Stores.ConsumingQuery.initialModel
, consumersStore = Stores.Consumer.initialModel
, partitionsStore = Stores.Partition.initialModel
Expand Down Expand Up @@ -62,7 +60,6 @@ type alias Model =
, name : String
, version : Maybe String
, jsonEditor : JsonEditor.Model
, publishersStore : Stores.Publisher.Model
, consumingQueriesStore : Stores.ConsumingQuery.Model
, consumersStore : Stores.Consumer.Model
, partitionsStore : Stores.Partition.Model
Expand Down
11 changes: 0 additions & 11 deletions client/Pages/EventTypeDetails/Update.elm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import Stores.CursorDistance
import Stores.EventTypeSchema
import Stores.EventTypeValidation
import Stores.Partition
import Stores.Publisher
import Url exposing (percentEncode)
import User.Commands exposing (logoutIfExpired)
import User.Models exposing (Settings)
Expand Down Expand Up @@ -167,16 +166,6 @@ update settings message model =
in
( { model | loadQueryResponse = resp }, switchTabOnFailure )

LoadPublishers ->
( model, dispatch (PublishersStoreMsg (loadSubStoreMsg model.name)) )

PublishersStoreMsg subMsg ->
let
( newSubModel, newSubMsg ) =
Stores.Publisher.update subMsg model.publishersStore
in
( { model | publishersStore = newSubModel }, Cmd.map PublishersStoreMsg newSubMsg )

LoadConsumingQueries ->
( model, dispatch (ConsumingQueriesStoreMsg (loadSubStoreMsg model.name)) )

Expand Down
1 change: 0 additions & 1 deletion client/Pages/EventTypeDetails/View.elm
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import Stores.EventType
import Stores.EventTypeSchema
import Stores.EventTypeValidation exposing (EventTypeValidationIssue)
import Stores.Partition
import Stores.Publisher
import Stores.Subscription
import String exposing (replace)

Expand Down
61 changes: 0 additions & 61 deletions client/Stores/Publisher.elm

This file was deleted.

5 changes: 0 additions & 5 deletions client/assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -435,11 +435,6 @@ body {
overflow: auto;
}

.publisher-tab__list {
height: calc(100vh - 400px);
overflow: auto;
}

.consumer-tab__list {
height: calc((100vh - 400px) / 2);
overflow: auto;
Expand Down
2 changes: 1 addition & 1 deletion elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"source-directories": [
"client"
],
"elm-version": "0.19.0",
"elm-version": "0.19.1",
"dependencies": {
"direct": {
"NoRedInk/elm-json-decode-pipeline": "1.0.0",
Expand Down
Loading

0 comments on commit de3c815

Please sign in to comment.