Giter Club home page Giter Club logo

tals's People

Contributors

andrej-sajenko avatar frankkammer avatar jmeintrup avatar jnmm29 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

tals's Issues

Unexpected capabilities evaluation

It seems that either of the following capabilities:

  • mod/tals:manage
  • mod/tals:change
  • mod/tals:viewreports

is enough to perform many operations, including deletions or updates.

But for example, the mod/tals:viewreports is declared as read-only and the name does not suggest that it grants access to modifying the TALS status.

Missnamed "mod_block"

Accordingly to Moodle Plugin Types the claimed naming convention states the prefix "block_" for Block-Plugins instead of "mod_" which is reserved for activity modules.

So, the correct name should be "moodle-block_tals" instead of "moodle-mod_block".

Unable to add appointment on PostgreSQL

Attempting to add a new appointment on PostgreSQL throws error:

Debug info: ERROR: syntax error at or near "end"
LINE 1: INSERT INTO mdl_tals_appointment (title,start,end,descriptio...
^
INSERT INTO mdl_tals_appointment (title,start,end,description,courseid,groupid,fk_type_appointment_id,fk_pin_id) VALUES($1,$2,$3,$4,$5,$6,$7,$8) RETURNING id
[array (
'title' => '...',
'start' => 1528896600,
'end' => 1528901400,
'description' => '',
'courseid' => 2,
'groupid' => 1,
'fk_type_appointment_id' => 1,
'fk_pin_id' => 1,
)]
Error code: dmlwriteexception
Stack trace:

    line 482 of /lib/dml/moodle_database.php: dml_write_exception thrown
    line 250 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
    line 904 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
    line 960 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->insert_record_raw()
    line 322 of /mod/tals/locallib.php: call to pgsql_native_moodle_database->insert_record()
    line 345 of /mod/tals/locallib.php: call to tals_insert_appointment()
    line 147 of /mod/tals/addappointment.php: call to tals_update_appointment()

I suppose the reason might be that "END" is a reserved keyword on PostgreSQL.

What is the point of the tals_pin table?

What is the point of the tals_pin table? From what I can see, there is kind of 1:1 relationship with the tals_appointment table. So why not to have PIN-related columns directly in that table?

Just curious.

Does profile.php allow anybody to see anoone's profile?

Any student (i.e. user with the 'mod/tals:view' capability) can use the URL like profile.php?id=...&student=... and view others' attendance logging. I would expect that such access should be privileged for higher capabilities only.

Englify the whole project

We have

  • code,
  • comments,
  • documentation
  • and even git comments
    that are written in German.

We should at least rewrite the first three to English.

Block is missing in the codebase, but present in documentation

In the documentation it is described how to add a block for the attendance system to a cource.
This block is used to enable the pin and enter a pin for an appointment.

The block is not present in this repository! There is currently no way for a student to enter a pin on the website or the course master to start the pin for the current appointment via block (still possible via appointment list)

Hard-coded mdl_ prefix in the SQL query

The query

"SELECT COUNT(DISTINCT groupid) FROM mdl_tals_appointment WHERE fk_pin_id IS NOT NULL AND courseid = ?",

must not have the mdl_ prefix hard-coded. Moodle sites can have their own prefixes:

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.