Skip to content

Commit 3660e3b

Browse files
authored
Merge pull request #129 from clowder-framework/release/1.12.1
fix to rabbitmq
2 parents 1a42013 + b9a2c0a commit 3660e3b

File tree

7 files changed

+51
-30
lines changed

7 files changed

+51
-30
lines changed

.github/workflows/docker.yml

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -93,36 +93,44 @@ jobs:
9393
# build the docker image, this will always run to make sure
9494
# the Dockerfile still works.
9595
- name: Build image
96-
run: |
97-
docker build \
98-
--build-arg BRANCH=${GITHUB_BRANCH} \
99-
--build-arg VERSION=${CLOWDER_VERSION} \
100-
--build-arg BUILDNUMBER=${{ github.run_number }} \
101-
--build-arg GITSHA1=${{ github.sha }} \
102-
--tag image ${{ matrix.FOLDER }}
103-
104-
# this will publish to the actor (person) github packages
105-
- name: Publish to GitHub
106-
if: github.event_name == 'push'
107-
uses: elgohr/[email protected]
96+
uses: elgohr/[email protected]
10897
env:
10998
BRANCH: ${{ env.GITHUB_BRANCH }}
11099
VERSION: ${{ env.CLOWDER_VERSION }}
111100
BUILDNUMBER: ${{ github.run_number }}
112101
GITSHA1: ${{ github.sha }}
113102
with:
114-
name: ${{ github.repository_owner }}/clowder/${{ matrix.IMAGE }}
103+
registry: docker.pkg.github.com
104+
name: ${{ github.repository_owner }}/${{ github.event.repository.name }}/${{ matrix.IMAGE }}
115105
username: ${{ github.actor }}
116106
password: ${{ secrets.GITHUB_TOKEN }}
117107
context: ${{ matrix.FOLDER }}
108+
tags: "${{ env.TAGS }}"
109+
buildargs: BRANCH,VERSION,BUILDNUMBER,GITSHA1
110+
no_push: true
111+
112+
# this will publish to github container registry
113+
- name: Publish to GitHub
114+
if: github.event_name != 'pull_request' && github.repository == env.MASTER_REPO
115+
uses: elgohr/[email protected]
116+
env:
117+
BRANCH: ${{ env.GITHUB_BRANCH }}
118+
VERSION: ${{ env.CLOWDER_VERSION }}
119+
BUILDNUMBER: ${{ github.run_number }}
120+
GITSHA1: ${{ github.sha }}
121+
with:
122+
registry: ghcr.io
123+
name: ${{ github.repository_owner }}/${{ matrix.IMAGE }}
124+
username: ${{ secrets.GHCR_USERNAME }}
125+
password: ${{ secrets.GHCR_PASSWORD }}
126+
context: ${{ matrix.FOLDER }}
118127
tags: "${{ env.CLOWDER_TAGS }}"
119-
registry: docker.pkg.github.com
120128
buildargs: BRANCH,VERSION,BUILDNUMBER,GITSHA1
121129

122130
# this will publish to the clowder dockerhub repo
123131
- name: Publish to Docker Hub
124-
if: github.event_name == 'push' && github.repository == env.MASTER_REPO
125-
uses: elgohr/Publish-Docker-Github-Action@2.18
132+
if: github.event_name != 'pull_request' && github.repository == env.MASTER_REPO
133+
uses: elgohr/Publish-Docker-Github-Action@2.22
126134
env:
127135
BRANCH: ${{ env.GITHUB_BRANCH }}
128136
VERSION: ${{ env.CLOWDER_VERSION }}

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## 1.12.1 - 2020-11-05
8+
9+
### Fixed
10+
- Error uploading to spaces that did not have extractors enabled/disabled (personel spaces).
11+
- If extractor does not have any parameters, there would be an error message in the console of the browser.
12+
- If the extractor did not have a user_id it would create an error and not record the event.
13+
14+
### Changed
15+
- Docker Images are now pushed to [github container registry](https://github.com/orgs/clowder-framework/packages)
16+
717
## 1.12.0 - 2020-10-19
818
**_Warning:_**
919
- This update modifies the MongoDB schema. Make sure to start the application with `-DMONGOUPDATE=1`.

app/services/RabbitmqPlugin.scala

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -362,15 +362,16 @@ class RabbitmqPlugin(application: Application) extends Plugin {
362362
var enabledExtractors = new ListBuffer[String]()
363363
var disabledExtractors = new ListBuffer[String]()
364364
dataset.spaces.map(space => {
365-
val extractors = spacesService.getAllExtractors(space)
366-
enabledExtractors.appendAll(extractors.get.enabled.flatMap { exId =>
367-
extractorsService.getExtractorInfo(exId).filter(exInfo =>
368-
containsOperation(exInfo.process.dataset, operation) || containsOperation(exInfo.process.file, operation)).map(_.name)
369-
})
370-
disabledExtractors.appendAll(extractors.get.disabled.flatMap { exId =>
371-
extractorsService.getExtractorInfo(exId).filter(exInfo =>
372-
containsOperation(exInfo.process.dataset, operation) || containsOperation(exInfo.process.file, operation)).map(_.name)
373-
})
365+
spacesService.getAllExtractors(space).foreach { extractors =>
366+
enabledExtractors.appendAll(extractors.enabled.flatMap { exId =>
367+
extractorsService.getExtractorInfo(exId).filter(exInfo =>
368+
containsOperation(exInfo.process.dataset, operation) || containsOperation(exInfo.process.file, operation)).map(_.name)
369+
})
370+
disabledExtractors.appendAll(extractors.disabled.flatMap { exId =>
371+
extractorsService.getExtractorInfo(exId).filter(exInfo =>
372+
containsOperation(exInfo.process.dataset, operation) || containsOperation(exInfo.process.file, operation)).map(_.name)
373+
})
374+
}
374375
})
375376
(enabledExtractors.toList, disabledExtractors.toList)
376377
}
@@ -1204,7 +1205,7 @@ class EventFilter(channel: Channel, queue: String) extends Actor {
12041205
Logger.debug("Received extractor status: " + statusBody)
12051206
val json = Json.parse(statusBody)
12061207
val file_id = UUID((json \ "file_id").as[String])
1207-
val user_id = UUID((json \ "user_id").as[String])
1208+
val user_id = (json \ "user_id").asOpt[String].fold(User.anonymous.id)(s => UUID(s))
12081209
val job_id: Option[UUID] = (json \ "job_id").asOpt[String] match {
12091210
case Some(jid) => { Some(UUID(jid)) }
12101211
case None => { None }

app/views/extractions/submitFileExtraction.scala.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ <h1>Submit file for extraction</h1>
8080
<script>
8181
var params = JSON.parse("@Json.stringify(e.parameters)".replace(/&quot;/g, "\""));
8282
var selector = "#@(e.name.replaceAll("\\.", "_"))_parameters";
83-
$(selector).jsonForm(params);
83+
if (Object.keys(params).length != 0) {
84+
$(selector).jsonForm(params);
85+
}
8486
</script>
8587
}
8688
</tbody>

doc/src/sphinx/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
author = 'Luigi Marini'
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = '1.12.0'
25+
release = '1.12.1'
2626

2727

2828
# -- General configuration ---------------------------------------------------

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import NativePackagerKeys._
1313
object ApplicationBuild extends Build {
1414

1515
val appName = "clowder"
16-
val version = "1.12.0"
16+
val version = "1.12.1"
1717
val jvm = "1.7"
1818

1919
def appVersion: String = {

public/swagger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ info:
99
Clowder is a customizable and scalable data management system to support any
1010
data format and multiple research domains. It is under active development
1111
and deployed for a variety of research projects.
12-
version: 1.12.0
12+
version: 1.12.1
1313
termsOfService: https://clowder.ncsa.illinois.edu/clowder/tos
1414
contact:
1515
name: Clowder

0 commit comments

Comments
 (0)