Skip to content

Commit

Permalink
Merge pull request #143 from unipept/fix/change_base_url
Browse files Browse the repository at this point in the history
Update base URL to api.unipept.ugent.be
  • Loading branch information
pverscha authored Dec 1, 2021
2 parents 3ff2d3b + f249642 commit 38d741b
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
24 changes: 24 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
preferred-citation:
type: article
authors:
- family-names: "Verschaffelt"
given-names: "Pieter"
- family-names: "Van Den Bossche"
given-names: "Tim"
- family-names: "Martens"
given-names: "Lennart"
- family-names: "Dawyndt"
given-names: "Peter"
- family-names: "Mesuere"
given-names: "Bart"
orcid: "https://orcid.org/0000-0003-0610-3441"
doi: "10.1021/acs.jproteome.0c00855"
journal: "Journal of Proteome Research"
start: 2005
end: 2009
title: "Unipept Desktop: A Faster, More Powerful Metaproteomics Results Analysis Tool"
issue: 4
volume: 20
year: 2021
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ export default class App extends Vue implements ErrorListener {
try {
let config: Configuration = await configurationManager.readConfiguration();
NetworkConfiguration.BASE_URL = config.apiSource;
// Make sure that the old Unipept URL is no longer being used...
if (NetworkConfiguration.BASE_URL === "https://unipept.ugent.be") {
NetworkConfiguration.BASE_URL = "https://api.unipept.ugent.be";
}
NetworkConfiguration.PARALLEL_API_REQUESTS = config.maxParallelRequests;
QueueManager.initializeQueue(config.maxLongRunningTasks);
} catch (err) {
Expand Down
4 changes: 2 additions & 2 deletions src/logic/configuration/ConfigurationManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ export default class ConfigurationManager {
// This is the default configuration object that's used as a fallback for inconsistent/inavailable configuration
// values.
private static readonly DEFAULT_CONFIG: Configuration = {
apiSource: "https://unipept.ugent.be",
apiSource: "https://api.unipept.ugent.be",
useNativeTitlebar: false,
maxLongRunningTasks: 8,
maxParallelRequests: 5
maxParallelRequests: 2
};
// Reference to the last configuration that was returned by this manager. Can be used to update the current
// configuration and write the changes to disk (without having to read it again).
Expand Down

0 comments on commit 38d741b

Please sign in to comment.