Skip to content

Commit

Permalink
feat: 🚀 deploying to server to get ready for new tika featurues
Browse files Browse the repository at this point in the history
  • Loading branch information
snenenenenenene committed Oct 24, 2022
1 parent 65c951f commit 874832b
Show file tree
Hide file tree
Showing 11 changed files with 9,184 additions and 9,590 deletions.
66 changes: 66 additions & 0 deletions docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
version: "3.7"

services:
identifier:
ports:
- "81:80"
restart: "no"
dispatcher:
restart: "no"
virtuoso:
ports:
- "8894:8890"
restart: "no"
resource:
restart: "no"
database:
environment:
LOG_OUTGOING_SPARQL_QUERIES: "true"
LOG_INCOMING_SPARQL_QUERIES: "true"
LOG_ACCESS_RIGHTS: "true"
INSPECT_OUTGOING_SPARQL_QUERIES: "true"
INSPECT_INCOMING_SPARQL_QUERIES: "true"
LOG_SERVER_CONFIGURATION: "true"
INSPECT_ACCESS_RIGHTS_PROCESSING: "true"
LOG_DELTA_MESSAGES: "true"
LOG_DELTA_CLIENT_COMMUNICATION: "true"
LOG_TEMPLATE_MATCHER_PERFORMANCE: "true"
LOG_OUTGOING_SPARQL_QUERY_RESPONSES: "true"
INSPECT_OUTGOING_SPARQL_QUERY_RESPONSES: "true"
LOG_OUTGOING_SPARQL_QUERY_ROUNDTRIP: "true"
restart: "no"
cache:
restart: "no"
mocklogin:
image: lblod/mock-login-service:0.4.0
restart: "no"
migrations:
restart: "no"
file:
restart: "no"
search:
environment:
LOG_SCOPE_AUTHORIZATION: "debug"
LOG_SCOPE_SPARQL: "debug"
LOG_SCOPE_ELASTICSEARCH: "debug"
LOG_SCOPE_SEARCH: "debug"
restart: "no"
elasticsearch:
restart: "no"
tika:
restart: "no"
search-query-management:
restart: "no"
enrich-submission:
restart: "no"
submissions-consumer:
restart: "no"
kibana:
image: docker.elastic.co/kibana/kibana:7.2.0
environment:
ELASTICSEARCH_URL: "http://elasticsearch:9200"
ports:
- "5601:5601"
user: root
command: /usr/local/bin/kibana-docker --allow-root
restart: "no"
32 changes: 32 additions & 0 deletions frontend/app/controllers/index/municipality/decisions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Controller from '@ember/controller';
import { action } from '@ember/object';
import { inject as service } from '@ember/service';
import { tracked } from '@glimmer/tracking';
import axios from 'axios';
Expand All @@ -8,6 +9,37 @@ import { Decision } from 'index';
export default class MunicipalityDecisions extends Controller {
@service declare municipalities: MunicipalitiesService;
@tracked decisionData: Array<Decision> = [];
@tracked searchQuery: string = '';
@tracked termsArray: any = {
texts: [
{
text_id: 1,
text: '',
},
],
};

@action getSearchPredictionVectors() {
axios
.post(
'http://localhost:3000/embed-search-term/predictions/EmbedBert/1.0',
{
texts: [
{
text_id: 1,
text: this.searchQuery,
},
],
}
)
.then((response) => {
this.getSearchQuerriesFromVectors(response.data);
});
}

@action getSearchQuerriesFromVectors(searchPredictionVectors: any) {
console.log(searchPredictionVectors);
}

@tracked findMunicipalities = () => {
axios
Expand Down
1 change: 1 addition & 0 deletions frontend/app/templates/index/municipality/decision.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<li class='au-c-list-horizontal__item'>
{{this.model}}
</li>

</ul>
</Group>
</AuToolbar>
Expand Down
11 changes: 2 additions & 9 deletions frontend/app/templates/index/municipality/decisions.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,8 @@
</AuHeading>
</Group>
<Group class='au-c-toolbar__group--center'>
<AuButton @icon='book' @iconAlignment='left'>
<LinkTo
@model={{this.model}}
@route={{'index.municipality'}}
style='color: white; text-decoration: none;'
>
Algemene info
</LinkTo>
</AuButton>
<AuButton onclick={{action 'getSearchPredictionVectors'}}>Search</AuButton>
<AuInput @placeholder='Gasprijzen' @value={{this.searchQuery}} />
</Group>
</AuToolbar>
<div style='margin-top: 30px;'>
Expand Down
Loading

0 comments on commit 874832b

Please sign in to comment.