Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop deprecated endpoints, utilities and functions #214

Merged
merged 2 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions app/package-lock.json

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

1 change: 0 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"@aws-sdk/lib-storage": "^3.388.0",
"@aws-sdk/s3-request-presigner": "^3.388.0",
"api-problem": "^9.0.1",
"busboy": "^1.6.0",
"compression": "^1.7.4",
"config": "^3.3.9",
"content-disposition": "^0.5.4",
Expand Down
24 changes: 0 additions & 24 deletions app/src/components/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,30 +224,6 @@ const utils = {
return array.find(obj => (obj.key === key && obj.value === value));
},

/**
* @deprecated To be removed in v0.6.0
* @function getPath
* Gets the relative path of `objId`
* @param {string} objId The object id
* @returns {Promise<string>} The path
*/
async getPath(objId) {
let key = utils.delimit(config.get('objectStorage.key'));

// Function scoped import to avoid circular dependencies
const { objectService } = require('../services');

try {
key = (await objectService.getBucketKey(objId)).key;
} catch (err) {
log.verbose(`${err.message}. Using default fallback path instead.`, {
function: 'getPath', objId: objId
});
}

return utils.joinPath(key, objId);
},

/**
* @function getS3VersionId
* Gets the s3VersionId from database using given internal COMS version id
Expand Down
Loading