Skip to content
New issue

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

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

Already on GitHub? # to your account

Data Release Module #1602

Merged
merged 46 commits into from
Apr 1, 2016
Merged

Data Release Module #1602

merged 46 commits into from
Apr 1, 2016

Conversation

Jkat
Copy link
Contributor

@Jkat Jkat commented Mar 9, 2016

You can package your releases and distribute them here.

@Jkat Jkat added Feature PR or issue introducing/requiring at least one new feature SQL PR contains SQL modifications such as schema changes and new SQL scripts labels Mar 9, 2016
@Jkat Jkat self-assigned this Mar 9, 2016
@Jkat Jkat added this to the 16.0 milestone Mar 9, 2016
@christinerogers
Copy link
Contributor

@nicolasbrossard Check ca - ben don cool.

@Jkat Jkat closed this Mar 10, 2016
@Jkat Jkat reopened this Mar 10, 2016
@Jkat Jkat removed their assignment Mar 11, 2016
@codecov-io
Copy link

Current coverage is 15.19%

Merging #1602 into 16.04-dev will increase coverage by +0.62% as of e7a34a3

@@            16.04-dev   #1602   diff @@
=========================================
  Files             113     121     +8
  Stmts           18997   19754   +757
  Branches            0       0       
  Methods          1052    1068    +16
=========================================
+ Hit              2769    3002   +233
  Partial             0       0       
- Missed          16228   16752   +524

Review entire Coverage Diff as of e7a34a3

Powered by Codecov. Updated on successful CI builds.

}
header("Location: ../main.php?test_name=data_release&uploadSuccess=true");
} else {
echo "There was an error uploading the file";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should include a 400 Bad Request header too.

@driusan driusan self-assigned this Mar 18, 2016
);
$uid = $db->pselectOne(
"SELECT ID FROM users WHERE "
. "UserID='{$user->getUsername()}'",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a prepared statement.

@gluneau gluneau assigned gluneau and unassigned driusan Mar 29, 2016
@gluneau
Copy link
Contributor

gluneau commented Mar 31, 2016

Please make note that deleting access or releases is not implemented.

'data_release_id' => $data_release_id,
)
);
header("Location: /data_release/?addpermissionSuccess=true");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is missing the baseURL so won't work on things not installed directly on the host @Jkat

@driusan driusan added Needs Work PR awaiting additional changes by the author or contains issues that the author needs to fix and removed PassedCodeReview labels Mar 31, 2016
@Jkat Jkat removed the Needs Work PR awaiting additional changes by the author or contains issues that the author needs to fix label Mar 31, 2016
@Jkat
Copy link
Contributor Author

Jkat commented Mar 31, 2016

Thanks @driusan, fixed.

@driusan
Copy link
Collaborator

driusan commented Mar 31, 2016

FILE: ...vis/build/aces/Loris/modules/data_release/ajax/AddPermission.php

FOUND 1 ERROR AFFECTING 1 LINE

27 | ERROR | [x] Whitespace found at end of line

PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY

. " data_release_permissions drp"
. " ON (dr.id=drp.data_release_id)"
. " JOIN users u ON (u.ID=drp.userid)"
. " WHERE u.UserID='{$user->getUsername()}'";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use DBquote

@driusan driusan merged commit bb3cac2 into aces:16.04-dev Apr 1, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Feature PR or issue introducing/requiring at least one new feature SQL PR contains SQL modifications such as schema changes and new SQL scripts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants