toolsplus / atlassian-connect-play-slick Goto Github PK
View Code? Open in Web Editor NEWSlick repository implementations for Atlassian Connect Play
License: Apache License 2.0
Slick repository implementations for Atlassian Connect Play
License: Apache License 2.0
Connect on Forge installations require a table mapping unique Forge installation IDs to clientKeys, whereby different installationIds
may map to the same clientKey.
Refer to the ACSB PR for details: https://bitbucket.org/atlassian/atlassian-connect-spring-boot/pull-requests/340/onecloud-3745-acsb-frc-support-added
Why is the mapping table from installation id to client key required?
For Forge Remote requests, we always have to look up the Atlassian host based on the Forge installation ID.
Forge installation id -> Atlassian host
Consider the following two scenarios:
In the case of 1, the installation ID changes, but the client key remains the same. In the case of 2, the installation ID remains the same, but the client key changes, which can lead to having two Atlassian hosts with the same installation ID. The result of this is that searching the Atlassian host table by installation ID may result in more than one matching record. The mapping table will keep track of the latest installation ID -> Atlassian host mapping.
Some add-ons might create additional Slick tables that store e.g. AtlassianHost.clientKey
as a foreign key to to a Atlassian host in their data model.
To write a Slick foreignKey
constraint you need access to the referenced Schema (i.e. AtlassianHostTable
), see http://slick.lightbend.com/doc/3.2.0/schemas.html#constraints
Therefore I think it's better to make AtlassianHostTable public, so it can be referenced in the constraint.
Update the repository implementation to include an optional installationId
and allow finding an AtlassianHost
based on a given installationId
.
This work should follow based on the model update implemented in toolsplus/atlassian-connect-play#75
Under certain circumstances, Atlassian Connect sends installation requests for already installed host base URLs but different client keys. Currently, the implementation requires unique client keys and base URLs and rejects those requests (they can only appear once in the host table).
Relax the requirement by making the base URL index non-unique. This is how it is currently also done in Atlassian Connect Spring Boot.
https://ecosystem.atlassian.net/browse/ACSPRING-62
https://bitbucket.org/atlassian/atlassian-connect-spring-boot/commits/b8ecb0b12f2b94bece118cc21e267cc1229bdfcd
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.