Closed grgprarup closed 8 months ago
To prevent it from happening again, we could add table column check. We already have the implementation for that.
I would suggest to use kebab
(dav-path) casing
Usually we use copy paste. to prevent using different casing -> we should leave ONLY one in the code
dav-path
sounds good
For uniformity and to avoid creating different variables which might create confusion when reading feature files here are some changes to be done and follow:
http-status-code
for status code of HTTP and ocs-status-code
for status code of OCSdav-path-version
for the dav path version and dav-path
for webdav pathuser-role
for roles (Admin, Space Admin, User, User Light etc.)space-role
for roles of project space (manager, editor, viewer etc.)role
for resource share role (editor, viewer etc.)permissions-role
for roles of resource permissions in sharing NG (Viewer, File Editor, Editor, Uploader, Space Editor, Space Viewer etc.)Refactoring of header name for examples table is done for oCIS test suites and all the related PR are merged. So, closing this issue.
It would be better to maintain the consistency for naming example table headers throughout the feature files.
We are using different case styles and names for header names in the example tables.
For an example:
dav_version
,dav-path-version
, anddav-path
were used forDAV path version like old, new, and spaces
.dav_path
was used forDAV path like /webdav, /dav, and /dav/spaces
. those were refactored with PR https://github.com/owncloud/ocis/pull/6697, anddav-path-version
used forDAV path version
.Again, in PR https://github.com/owncloud/ocis/pull/6552
dav_version
was used forDAV path version
. And, in PR https://github.com/owncloud/ocis/pull/6958dav-path
was used forDAV path
In PR (https://github.com/owncloud/ocis/pull/6697) the refactoring was done only for
dav version and path
, there are more other cases where consistency can be maintained (ocs-api-version
,ocs_api_version
,http_status_code
,http-status
,http-status-code
etc. are some, we can check for more)For discussion:
case
to be used:kebab
(dav-path),snake
(dav_path),camel
(davPath)CC @individual-it @phil-davis @ScharfViktor @saw-jan